com.mathworks.mps.client

## Interface MWSSLServerAuthorizer

-     public interface MWSSLServerAuthorizer

  This class is the base interface for server authorization based on the server certificate available during the SSL handshake. The authorization is performed immediately after the SSL handshake and before any data is exchanged between client and server. If the authorization fails, no connection is established.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `authorize(java.security.cert.Certificate serverCert)` Authorize a server based on its certificate
    `boolean` | `isCertificateRequired()` Check to see if the client needs a server certificate

- - ### Method Detail

    - #### authorize

          boolean authorize(java.security.cert.Certificate serverCert)

      Authorize a server based on its certificate
      Parameters:
        `serverCert` - Server certificate provided during the SSL handshake
      Returns:
        true if it's an authorized server

    - #### isCertificateRequired

          boolean isCertificateRequired()

      Check to see if the client needs a server certificate
      Returns:
        true if the client needs a server certificate, else false

Copyright 2010-2022 The MathWorks, Inc.