Class SubjectSaslServer
java.lang.Object
org.infinispan.server.core.security.sasl.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
Modifier and TypeFieldDescriptionprotected final AuthorizingCallbackHandler
protected final SaslServer
static final String
-
Constructor Summary
ConstructorDescriptionSubjectSaslServer
(SaslServer delegate, List<Principal> principals, AuthorizingCallbackHandler callbackHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
byte[]
evaluateResponse
(byte[] response) getNegotiatedProperty
(String propName) boolean
byte[]
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:
getMechanismName
in interfaceSaslServer
-
evaluateResponse
- Specified by:
evaluateResponse
in interfaceSaslServer
- Throws:
SaslException
-
isComplete
public boolean isComplete()- Specified by:
isComplete
in interfaceSaslServer
-
getAuthorizationID
- Specified by:
getAuthorizationID
in interfaceSaslServer
-
unwrap
- Specified by:
unwrap
in interfaceSaslServer
- Throws:
SaslException
-
wrap
- Specified by:
wrap
in interfaceSaslServer
- Throws:
SaslException
-
getNegotiatedProperty
- Specified by:
getNegotiatedProperty
in interfaceSaslServer
-
dispose
- Specified by:
dispose
in interfaceSaslServer
- Throws:
SaslException
-