Class SubjectSaslServer
java.lang.Object
org.infinispan.server.core.security.SubjectSaslServer
- All Implemented Interfaces:
SaslServer
A
SaslServer which, when complete, can return a negotiated property named SUBJECT which contains a
populated Subject representing the authenticated user.- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AuthorizingCallbackHandlerprotected final SaslServerstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionSubjectSaslServer(SaslServer delegate, List<Principal> principals, AuthorizingCallbackHandler callbackHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()byte[]evaluateResponse(byte[] response) getNegotiatedProperty(String propName) booleanbyte[]unwrap(byte[] incoming, int offset, int len) byte[]wrap(byte[] outgoing, int offset, int len)
-
Field Details
-
SUBJECT
- See Also:
-
delegate
-
callbackHandler
-
principals
-
-
Constructor Details
-
SubjectSaslServer
public SubjectSaslServer(SaslServer delegate, List<Principal> principals, AuthorizingCallbackHandler callbackHandler)
-
-
Method Details
-
getMechanismName
- Specified by:
getMechanismNamein interfaceSaslServer
-
evaluateResponse
- Specified by:
evaluateResponsein interfaceSaslServer- Throws:
SaslException
-
isComplete
public boolean isComplete()- Specified by:
isCompletein interfaceSaslServer
-
getAuthorizationID
- Specified by:
getAuthorizationIDin interfaceSaslServer
-
unwrap
- Specified by:
unwrapin interfaceSaslServer- Throws:
SaslException
-
wrap
- Specified by:
wrapin interfaceSaslServer- Throws:
SaslException
-
getNegotiatedProperty
- Specified by:
getNegotiatedPropertyin interfaceSaslServer
-
dispose
- Specified by:
disposein interfaceSaslServer- Throws:
SaslException
-