Package com.isode.dsapi.config
Enum Class PeerAuthMode
- All Implemented Interfaces:
Serializable
,Comparable<PeerAuthMode>
,Constable
Authentication types for peer authentication, as used in attributes such as
isodeDISPAuthModeISend. Note that the values here correspond with those
defined in ./apps/d3/peer/PAC.h.
Note that the elements are declared in the ascending order of priority, i.e.
None < Name < Simple < Simple Protected < Strong
- Since:
- 15.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionName onlyAnonymousSimpleSimple protectedStrong -
Method Summary
Modifier and TypeMethodDescriptionReturns the description name stored for the enumeration.static PeerAuthMode
Convert integer to enum.getName()
Return the String form of this enum (e.g.boolean
Determines if a password needs to be associated with the authentication mode.toString()
Returns a String representation of the mode for this enum.Returns the user-friendly name stored for the enumeration.static PeerAuthMode
Returns the enum constant of this class with the specified name.static PeerAuthMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
Anonymous -
Name
Name only -
Simple
Simple -
SimpleProtected
Simple protected -
Strong
Strong
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getMode
Convert integer to enum.- Parameters:
mode
- integer indicating auth mode- Returns:
- corresponding enum value, NONE if not valid
-
userFriendlyStr
Returns the user-friendly name stored for the enumeration.- Returns:
- non-null friendly string for the enum
-
getDescription
Returns the description name stored for the enumeration.- Returns:
- non-null description string for the enum
-
toString
Returns a String representation of the mode for this enum. If you want the String representation of the enum, then usegetName()
- Overrides:
toString
in classEnum<PeerAuthMode>
- Returns:
- a String representation of mode
-
getName
Return the String form of this enum (e.g. "Name" or "None" etc.). This would normally be done by the "toString" method but that's been used for something else.- Returns:
- a String representation of this enum.
-
isPasswordRequired
public boolean isPasswordRequired()Determines if a password needs to be associated with the authentication mode.- Returns:
- TRUE if password is required for this authentication mode, FALSE if not
-