Package org.jgroups.auth.sasl
Class SaslClientContext
- java.lang.Object
-
- org.jgroups.auth.sasl.SaslClientContext
-
- All Implemented Interfaces:
SaslContext
public class SaslClientContext extends java.lang.Object implements SaslContext
-
-
Constructor Summary
Constructors Constructor Description SaslClientContext(javax.security.sasl.SaslClientFactory saslClientFactory, java.lang.String mech, java.lang.String server_name, javax.security.auth.callback.CallbackHandler callback_handler, java.util.Map<java.lang.String,java.lang.String> props, javax.security.auth.Subject subject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Message
addHeader(Message msg, byte[] payload)
void
dispose()
boolean
isSuccessful()
boolean
needsWrapping()
Message
nextMessage(Address address, SaslHeader header)
byte[]
unwrap(byte[] incoming, int offset, int len)
byte[]
wrap(byte[] outgoing, int offset, int len)
-
-
-
Constructor Detail
-
SaslClientContext
public SaslClientContext(javax.security.sasl.SaslClientFactory saslClientFactory, java.lang.String mech, java.lang.String server_name, javax.security.auth.callback.CallbackHandler callback_handler, java.util.Map<java.lang.String,java.lang.String> props, javax.security.auth.Subject subject) throws javax.security.sasl.SaslException
- Throws:
javax.security.sasl.SaslException
-
-
Method Detail
-
isSuccessful
public boolean isSuccessful()
- Specified by:
isSuccessful
in interfaceSaslContext
-
needsWrapping
public boolean needsWrapping()
- Specified by:
needsWrapping
in interfaceSaslContext
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws javax.security.sasl.SaslException
- Specified by:
wrap
in interfaceSaslContext
- Throws:
javax.security.sasl.SaslException
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws javax.security.sasl.SaslException
- Specified by:
unwrap
in interfaceSaslContext
- Throws:
javax.security.sasl.SaslException
-
nextMessage
public Message nextMessage(Address address, SaslHeader header) throws javax.security.sasl.SaslException
- Specified by:
nextMessage
in interfaceSaslContext
- Throws:
javax.security.sasl.SaslException
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceSaslContext
-
-