public class SASLContext extends Object implements CallbackHandler, PrivilegedExceptionAction<Boolean>
Modifier and Type | Method and Description |
---|---|
static SASLContext |
createSASLContext(HashMap<String,String> saslProps,
String serverFQDN,
String mechanism,
IdentityMapper<?> identityMapper)
Instantiate a GSSAPI/DIGEST-MD5 SASL context using the specified
parameters.
|
void |
handle(Callback[] callbacks)
Process the specified callback array.
|
Boolean |
run()
The method performs all GSSAPI processing.
|
public static SASLContext createSASLContext(HashMap<String,String> saslProps, String serverFQDN, String mechanism, IdentityMapper<?> identityMapper) throws SaslException
saslProps
- The properties to use in creating the SASL server.serverFQDN
- The fully qualified domain name to use in creating the SASL
server.mechanism
- The SASL mechanism name.identityMapper
- The identity mapper to use in mapping identities.SaslException
- If the SASL server can not be instantiated.public void handle(Callback[] callbacks) throws UnsupportedCallbackException
handle
in interface CallbackHandler
callbacks
- An array of callbacks that need processing.UnsupportedCallbackException
- If a callback is not supported.public Boolean run()
run
in interface PrivilegedExceptionAction<Boolean>
true
if the authentication processing was successful.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.