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
ASaslClientwhich evaluates challenges and wrap/unwrap requests in an privileged context.- Author:
- David M. Lloyd
-
-
Field Summary
-
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)
-
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
-
-
-
-
Constructor Detail
-
PrivilegedSaslClient
public PrivilegedSaslClient(SaslClient delegate)
-
-
Method Detail
-
evaluateChallenge
public byte[] evaluateChallenge(byte[] challenge) throws SaslException- Specified by:
evaluateChallengein interfaceSaslClient- Overrides:
evaluateChallengein classAbstractDelegatingSaslClient- Throws:
SaslException
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException- Specified by:
unwrapin interfaceSaslClient- Specified by:
unwrapin interfaceSaslWrapper- Overrides:
unwrapin classAbstractDelegatingSaslClient- Throws:
SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException- Specified by:
wrapin interfaceSaslClient- Specified by:
wrapin interfaceSaslWrapper- Overrides:
wrapin classAbstractDelegatingSaslClient- Throws:
SaslException
-
-