Package org.wildfly.security.sasl.util
Class PrivilegedSaslServer
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractDelegatingSaslServer
-
- org.wildfly.security.sasl.util.PrivilegedSaslServer
-
- All Implemented Interfaces:
SaslServer
,SaslWrapper
public final class PrivilegedSaslServer extends AbstractDelegatingSaslServer implements SaslWrapper
ASaslServer
which evaluates responses and wrap/unwrap requests in an privileged context.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private AccessControlContext
accessControlContext
-
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServer
delegate
-
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapper
IDENTITY
-
-
Constructor Summary
Constructors Constructor Description PrivilegedSaslServer(SaslServer delegate)
PrivilegedSaslServer(SaslServer delegate, AccessControlContext accessControlContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
evaluateResponse(byte[] response)
byte[]
unwrap(byte[] incoming, int offset, int len)
byte[]
wrap(byte[] outgoing, int offset, int len)
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServer
dispose, getAuthorizationID, getMechanismName, getNegotiatedProperty, isComplete, toString
-
-
-
-
Field Detail
-
accessControlContext
private final AccessControlContext accessControlContext
-
-
Constructor Detail
-
PrivilegedSaslServer
PrivilegedSaslServer(SaslServer delegate, AccessControlContext accessControlContext)
-
PrivilegedSaslServer
public PrivilegedSaslServer(SaslServer delegate)
-
-
Method Detail
-
evaluateResponse
public byte[] evaluateResponse(byte[] response) throws SaslException
- Specified by:
evaluateResponse
in interfaceSaslServer
- Overrides:
evaluateResponse
in classAbstractDelegatingSaslServer
- Throws:
SaslException
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException
- Specified by:
unwrap
in interfaceSaslServer
- Specified by:
unwrap
in interfaceSaslWrapper
- Overrides:
unwrap
in classAbstractDelegatingSaslServer
- Throws:
SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException
- Specified by:
wrap
in interfaceSaslServer
- Specified by:
wrap
in interfaceSaslWrapper
- Overrides:
wrap
in classAbstractDelegatingSaslServer
- Throws:
SaslException
-
-