Class SubjectSaslServer
- java.lang.Object
-
- org.infinispan.server.core.security.SubjectSaslServer
-
- All Implemented Interfaces:
javax.security.sasl.SaslServer
public class SubjectSaslServer extends java.lang.Object implements javax.security.sasl.SaslServer
ASaslServer
which, when complete, can return a negotiated property namedSUBJECT
which contains a populatedSubject
representing the authenticated user.- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthorizingCallbackHandler
callbackHandler
protected javax.security.sasl.SaslServer
delegate
protected java.util.List<java.security.Principal>
principals
static java.lang.String
SUBJECT
-
Constructor Summary
Constructors Constructor Description SubjectSaslServer(javax.security.sasl.SaslServer delegate, java.util.List<java.security.Principal> principals, AuthorizingCallbackHandler callbackHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
byte[]
evaluateResponse(byte[] response)
java.lang.String
getAuthorizationID()
java.lang.String
getMechanismName()
java.lang.Object
getNegotiatedProperty(java.lang.String propName)
boolean
isComplete()
byte[]
unwrap(byte[] incoming, int offset, int len)
byte[]
wrap(byte[] outgoing, int offset, int len)
-
-
-
Field Detail
-
SUBJECT
public static final java.lang.String SUBJECT
- See Also:
- Constant Field Values
-
delegate
protected final javax.security.sasl.SaslServer delegate
-
callbackHandler
protected final AuthorizingCallbackHandler callbackHandler
-
principals
protected final java.util.List<java.security.Principal> principals
-
-
Constructor Detail
-
SubjectSaslServer
public SubjectSaslServer(javax.security.sasl.SaslServer delegate, java.util.List<java.security.Principal> principals, AuthorizingCallbackHandler callbackHandler)
-
-
Method Detail
-
getMechanismName
public java.lang.String getMechanismName()
- Specified by:
getMechanismName
in interfacejavax.security.sasl.SaslServer
-
evaluateResponse
public byte[] evaluateResponse(byte[] response) throws javax.security.sasl.SaslException
- Specified by:
evaluateResponse
in interfacejavax.security.sasl.SaslServer
- Throws:
javax.security.sasl.SaslException
-
isComplete
public boolean isComplete()
- Specified by:
isComplete
in interfacejavax.security.sasl.SaslServer
-
getAuthorizationID
public java.lang.String getAuthorizationID()
- Specified by:
getAuthorizationID
in interfacejavax.security.sasl.SaslServer
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws javax.security.sasl.SaslException
- Specified by:
unwrap
in interfacejavax.security.sasl.SaslServer
- Throws:
javax.security.sasl.SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws javax.security.sasl.SaslException
- Specified by:
wrap
in interfacejavax.security.sasl.SaslServer
- Throws:
javax.security.sasl.SaslException
-
getNegotiatedProperty
public java.lang.Object getNegotiatedProperty(java.lang.String propName)
- Specified by:
getNegotiatedProperty
in interfacejavax.security.sasl.SaslServer
-
dispose
public void dispose() throws javax.security.sasl.SaslException
- Specified by:
dispose
in interfacejavax.security.sasl.SaslServer
- Throws:
javax.security.sasl.SaslException
-
-