Enum Class AuthenticationType
- All Implemented Interfaces:
Serializable
,Comparable<AuthenticationType>
,Constable
Enum representing different ways a user may be authenticated .
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBasicAuthenticationClientCertificateAuthenticationNoAuthenticationOAuth2ClientCredentialsOAuth2JWTBearerOAuth2PasswordOAuth2RefreshTokenOAuth2SAMLBearerAssertionOAuth2TechnicalUserPropagationOAuth2UserTokenExchangePrincipalPropagationSAML AssertionSAPAssertionSSOSDK specific authentication type to forward a given current Authentication Token directly to the destination -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationType
ofIdentifier
(String identifier) Returns theAuthenticationType
which equals the given identifier.static AuthenticationType
ofIdentifierOrDefault
(String identifier, AuthenticationType defaultAuthenticationType) Returns theAuthenticationType
which equals the given identifier, or thedefaultAuthenticationType
in case there is none.toString()
static AuthenticationType
Returns the enum constant of this class with the specified name.static AuthenticationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_AUTHENTICATION
NoAuthentication -
BASIC_AUTHENTICATION
BasicAuthentication -
PRINCIPAL_PROPAGATION
PrincipalPropagation -
CLIENT_CERTIFICATE_AUTHENTICATION
ClientCertificateAuthentication -
OAUTH2_CLIENT_CREDENTIALS
OAuth2ClientCredentials -
OAUTH2_SAML_BEARER_ASSERTION
OAuth2SAMLBearerAssertion -
OAUTH2_USER_TOKEN_EXCHANGE
OAuth2UserTokenExchange -
OAUTH2_JWT_BEARER
OAuth2JWTBearer -
SAP_ASSERTION_SSO
SAPAssertionSSO -
OAUTH2_PASSWORD
OAuth2Password -
SAML_ASSERTION
SAML Assertion -
OAUTH2_TECHNICAL_USER_PROPAGATION
OAuth2TechnicalUserPropagation -
TOKEN_FORWARDING
SDK specific authentication type to forward a given current Authentication Token directly to the destination -
OAUTH2_REFRESH_TOKEN
OAuth2RefreshToken
-
-
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
-
toString
- Overrides:
toString
in classEnum<AuthenticationType>
-
ofIdentifier
@Nonnull public static AuthenticationType ofIdentifier(@Nonnull String identifier) throws IllegalArgumentException Returns theAuthenticationType
which equals the given identifier.- Parameters:
identifier
- The identifier to get aAuthenticationType
for.- Returns:
- The matching
AuthenticationType
. - Throws:
IllegalArgumentException
- If the given identifier does not map to aAuthenticationType
.
-
ofIdentifierOrDefault
@Nonnull public static AuthenticationType ofIdentifierOrDefault(@Nullable String identifier, @Nonnull AuthenticationType defaultAuthenticationType) Returns theAuthenticationType
which equals the given identifier, or thedefaultAuthenticationType
in case there is none.- Parameters:
identifier
- The identifier to get aAuthenticationType
for.defaultAuthenticationType
- TheAuthenticationType
to return if no matchingAuthenticationType
could be found.- Returns:
- The matching
AuthenticationType
or the default, if none is matching.
-
getIdentifier
-