Package org.jgroups.auth.sasl
Class SaslServerContext
- java.lang.Object
-
- org.jgroups.auth.sasl.SaslServerContext
-
- All Implemented Interfaces:
SaslContext
public class SaslServerContext extends java.lang.Object implements SaslContext
-
-
Constructor Summary
Constructors Constructor Description SaslServerContext(javax.security.sasl.SaslServerFactory saslServerFactory, java.lang.String mech, java.lang.String serverName, 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 void
awaitCompletion(long timeout)
void
dispose()
java.lang.String
getAuthorizationID()
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
-
SaslServerContext
public SaslServerContext(javax.security.sasl.SaslServerFactory saslServerFactory, java.lang.String mech, java.lang.String serverName, 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
-
awaitCompletion
public void awaitCompletion(long timeout) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
getAuthorizationID
public java.lang.String getAuthorizationID()
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceSaslContext
-
-