Class IdentityProviderName
java.lang.Object
com.inductiveautomation.ignition.common.auth.idp.IdentityProviderName
- All Implemented Interfaces:
Comparable<IdentityProviderName>
@Deprecated(since="8.3.0")
public class IdentityProviderName
extends Object
implements Comparable<IdentityProviderName>
Deprecated.
This class should only be used for special migration related purposes only.
Immutable wrapper around a raw IdP name String
. Sanitizes the raw name such that:
- The first character is replaced with an underscore if it is not an underscore or alphabetical
- Any remaining characters are replaced with underscores if they are not underscores, alphabetical or numeric
An IdentityProviderName is equal to another if its sanitized name is equal to (ignoring case) the other's sanitized name.
Makes for good consistent hash keys as the hash code is based on the sanitized name converted to all lowercase characters.
When one IdentityProviderName is compared with another, the result is the same as if their sanitized names are compared with each other (ignoring case).
-
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.boolean
Deprecated.getName()
Deprecated.int
hashCode()
Deprecated.static IdentityProviderName
Deprecated.Create a newIdentityProviderName
given the raw name as aString
toString()
Deprecated.
-
Method Details
-
getName
Deprecated.- Returns:
- the raw un-sanitized name (never null)
-
of
Deprecated.Create a newIdentityProviderName
given the raw name as aString
- Parameters:
name
- the raw name as aString
. must not be null.- Returns:
- the
IdentityProviderName
composed of the raw name as aString
. never null. - Throws:
NullPointerException
- if the given name is null
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated. -
compareTo
Deprecated.- Specified by:
compareTo
in interfaceComparable<IdentityProviderName>
-