Class PulsarSaslServer
java.lang.Object
org.apache.pulsar.broker.authentication.PulsarSaslServer
Server side Sasl implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReports the authorization ID in effect for the client of this session.booleanorg.apache.pulsar.common.api.AuthDataresponse(org.apache.pulsar.common.api.AuthData token)
-
Constructor Details
-
PulsarSaslServer
public PulsarSaslServer(Subject subject, Pattern allowedIdsPattern) throws IOException, LoginException - Throws:
IOExceptionLoginException
-
-
Method Details
-
isComplete
public boolean isComplete() -
getAuthorizationID
Reports the authorization ID in effect for the client of this session. This method can only be called if isComplete() returns true.- Returns:
- The authorization ID of the client.
- Throws:
IllegalStateException- if this authentication session has not completed
-
response
public org.apache.pulsar.common.api.AuthData response(org.apache.pulsar.common.api.AuthData token) throws AuthenticationException - Throws:
AuthenticationException
-