Class SASLExternalMechanism
java.lang.Object
org.jivesoftware.smack.sasl.SASLMechanism
org.jivesoftware.smack.sasl.javax.SASLJavaXMechanism
org.jivesoftware.smack.sasl.javax.SASLExternalMechanism
- All Implemented Interfaces:
Comparable<org.jivesoftware.smack.sasl.SASLMechanism>
Implementation of the SASL EXTERNAL mechanism.
To effectively use this mechanism, Java must be configured to properly
supply a client SSL certificate (of some sort) to the server. It is up
to the implementer to determine how to do this. Here is one method:
Create a java keystore with your SSL certificate in it:
keytool -genkey -alias username -dname "cn=username,ou=organizationalUnit,o=organizationalName,l=locality,s=state,c=country"
Next, set the System Properties:
- javax.net.ssl.keyStore to the location of the keyStore
- javax.net.ssl.keyStorePassword to the password of the keyStore
- javax.net.ssl.trustStore to the location of the trustStore
- javax.net.ssl.trustStorePassword to the password of the trustStore
-
Field Summary
FieldsFields inherited from class org.jivesoftware.smack.sasl.javax.SASLJavaXMechanism
scFields inherited from class org.jivesoftware.smack.sasl.SASLMechanism
authenticationId, authorizationId, connection, connectionConfiguration, CRAMMD5, DIGESTMD5, EXTERNAL, GSSAPI, host, password, PLAIN, serviceName, sslSession -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jivesoftware.smack.sasl.javax.SASLJavaXMechanism
authenticateInternal, authenticateInternal, checkIfSuccessfulOrThrow, evaluateChallenge, getAuthenticationText, getSaslProps, getServerNameMethods inherited from class org.jivesoftware.smack.sasl.SASLMechanism
afterFinalSaslChallenge, authenticate, authenticate, challengeReceived, compareTo, instanceForAuthentication, isAuthenticationSuccessful, isFinished, saslPrep, setException, throwExceptionIfRequired, toBytes, toString
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
SASLExternalMechanism
public SASLExternalMechanism()
-
-
Method Details
-
authzidSupported
public boolean authzidSupported()- Overrides:
authzidSupportedin classorg.jivesoftware.smack.sasl.SASLMechanism
-
getName
- Specified by:
getNamein classSASLJavaXMechanism
-
getPriority
public int getPriority()- Specified by:
getPriorityin classorg.jivesoftware.smack.sasl.SASLMechanism
-
newInstance
- Specified by:
newInstancein classorg.jivesoftware.smack.sasl.SASLMechanism
-
requiresPassword
public boolean requiresPassword()- Overrides:
requiresPasswordin classorg.jivesoftware.smack.sasl.SASLMechanism
-