Package org.wildfly.security.sasl.util
Class PrivilegedSaslClient
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractDelegatingSaslClient
-
- org.wildfly.security.sasl.util.PrivilegedSaslClient
-
- All Implemented Interfaces:
SaslClient
,SaslWrapper
public final class PrivilegedSaslClient extends AbstractDelegatingSaslClient implements SaslWrapper
ASaslClient
which evaluates challenges 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.AbstractDelegatingSaslClient
delegate
-
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapper
IDENTITY
-
-
Constructor Summary
Constructors Constructor Description PrivilegedSaslClient(SaslClient delegate)
PrivilegedSaslClient(SaslClient delegate, AccessControlContext accessControlContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
evaluateChallenge(byte[] challenge)
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.AbstractDelegatingSaslClient
dispose, getMechanismName, getNegotiatedProperty, hasInitialResponse, isComplete, toString
-
-
-
-
Field Detail
-
accessControlContext
private final AccessControlContext accessControlContext
-
-
Constructor Detail
-
PrivilegedSaslClient
PrivilegedSaslClient(SaslClient delegate, AccessControlContext accessControlContext)
-
PrivilegedSaslClient
public PrivilegedSaslClient(SaslClient delegate)
-
-
Method Detail
-
evaluateChallenge
public byte[] evaluateChallenge(byte[] challenge) throws SaslException
- Specified by:
evaluateChallenge
in interfaceSaslClient
- Overrides:
evaluateChallenge
in classAbstractDelegatingSaslClient
- Throws:
SaslException
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException
- Specified by:
unwrap
in interfaceSaslClient
- Specified by:
unwrap
in interfaceSaslWrapper
- Overrides:
unwrap
in classAbstractDelegatingSaslClient
- Throws:
SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException
- Specified by:
wrap
in interfaceSaslClient
- Specified by:
wrap
in interfaceSaslWrapper
- Overrides:
wrap
in classAbstractDelegatingSaslClient
- Throws:
SaslException
-
-