Package com.isode.mhfcm
Class AuthenticationDetails
- java.lang.Object
-
- com.isode.mhfcm.AuthenticationDetails
-
public class AuthenticationDetails extends java.lang.Object
This class represents information used to authenticate to a server in the MHFCM environment. Specifically, an AuthenticationDetails object contains the name and password for the entity wanting to authenticate.- Since:
- 16.4
-
-
Constructor Summary
Constructors Constructor Description AuthenticationDetails()
Create an AuthenticationDetails object for anonymous authentication.AuthenticationDetails(java.lang.String name, java.lang.String password)
Create an AuthenticationDetails object for simple authentication, that is, authentication that uses a username/password without using SASL.AuthenticationDetails(java.lang.String name, java.lang.String password, java.lang.String saslMechs)
Create an AuthenticationDetails object for SIMPLE or SASL authentication
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
-
-
Constructor Detail
-
AuthenticationDetails
public AuthenticationDetails(java.lang.String name, java.lang.String password)
Create an AuthenticationDetails object for simple authentication, that is, authentication that uses a username/password without using SASL.For a connection to a directory server, the name used will always be in the form of a Distinguished Name, such as
cn=tom,ou=staff,o=acme
.- Parameters:
name
- the username to use. Must not be null.password
- the password to use. Must not be null, but may be an empty String
-
AuthenticationDetails
public AuthenticationDetails()
Create an AuthenticationDetails object for anonymous authentication. No username or password will be used.
-
AuthenticationDetails
public AuthenticationDetails(java.lang.String name, java.lang.String password, java.lang.String saslMechs)
Create an AuthenticationDetails object for SIMPLE or SASL authentication- Parameters:
name
- the name to be used (for example, tom.jones@mycorp.net). Must not be null.password
- the password to use. Must not be null, but may be an empty String.saslMechs
- the SASL mechanism(s) to be used. Either a single mechanism such as "CRAM-MD5" or a list of mechanisms separated by spaces, such as "SCRAM-SHA1 DIGEST-MD5". A value of null indicates a simple bind with no SASL authentication. A value of "" (empty string) indicates that the API should use this first mechanism on the list provided by the Queue Manager.
-
-