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.SaslServerASaslServerwhich, when complete, can return a negotiated property namedSUBJECTwhich contains a populatedSubjectrepresenting the authenticated user.- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthorizingCallbackHandlercallbackHandlerprotected javax.security.sasl.SaslServerdelegateprotected java.util.List<java.security.Principal>principalsstatic java.lang.StringSUBJECT
-
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 voiddispose()byte[]evaluateResponse(byte[] response)java.lang.StringgetAuthorizationID()java.lang.StringgetMechanismName()java.lang.ObjectgetNegotiatedProperty(java.lang.String propName)booleanisComplete()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:
getMechanismNamein interfacejavax.security.sasl.SaslServer
-
evaluateResponse
public byte[] evaluateResponse(byte[] response) throws javax.security.sasl.SaslException- Specified by:
evaluateResponsein interfacejavax.security.sasl.SaslServer- Throws:
javax.security.sasl.SaslException
-
isComplete
public boolean isComplete()
- Specified by:
isCompletein interfacejavax.security.sasl.SaslServer
-
getAuthorizationID
public java.lang.String getAuthorizationID()
- Specified by:
getAuthorizationIDin interfacejavax.security.sasl.SaslServer
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws javax.security.sasl.SaslException- Specified by:
unwrapin 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:
wrapin interfacejavax.security.sasl.SaslServer- Throws:
javax.security.sasl.SaslException
-
getNegotiatedProperty
public java.lang.Object getNegotiatedProperty(java.lang.String propName)
- Specified by:
getNegotiatedPropertyin interfacejavax.security.sasl.SaslServer
-
dispose
public void dispose() throws javax.security.sasl.SaslException- Specified by:
disposein interfacejavax.security.sasl.SaslServer- Throws:
javax.security.sasl.SaslException
-
-