public enum AuthenticationType extends Enum<AuthenticationType>
GenericDestination
.Enum Constant and Description |
---|
APP_TO_APP_SSO |
BASIC_AUTHENTICATION |
CLIENT_CERTIFICATE_AUTHENTICATION |
INTERNAL_SYSTEM_AUTHENTICATION |
NO_AUTHENTICATION |
OAUTH2_CLIENT_CREDENTIALS |
OAUTH2_SAML_BEARER_ASSERTION |
PRINCIPAL_PROPAGATION |
SAP_ASSERTION_SSO |
Modifier and Type | Method and Description |
---|---|
String |
getIdentifier() |
static AuthenticationType |
ofIdentifier(String identifier)
Returns the
AuthenticationType which equals the given identifier. |
static AuthenticationType |
ofIdentifierOrDefault(String identifier,
AuthenticationType defaultAuthenticationType)
Returns the
AuthenticationType which equals the given identifier, or the
defaultAuthenticationType in case there is none. |
String |
toString() |
static AuthenticationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthenticationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthenticationType NO_AUTHENTICATION
public static final AuthenticationType BASIC_AUTHENTICATION
public static final AuthenticationType PRINCIPAL_PROPAGATION
public static final AuthenticationType CLIENT_CERTIFICATE_AUTHENTICATION
public static final AuthenticationType APP_TO_APP_SSO
public static final AuthenticationType OAUTH2_CLIENT_CREDENTIALS
public static final AuthenticationType OAUTH2_SAML_BEARER_ASSERTION
public static final AuthenticationType SAP_ASSERTION_SSO
public static final AuthenticationType INTERNAL_SYSTEM_AUTHENTICATION
public static AuthenticationType[] values()
for (AuthenticationType c : AuthenticationType.values()) System.out.println(c);
public static AuthenticationType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<AuthenticationType>
@Nonnull public static AuthenticationType ofIdentifier(@Nonnull String identifier) throws IllegalArgumentException
AuthenticationType
which equals the given identifier.identifier
- The identifier to get a AuthenticationType
for.AuthenticationType
.IllegalArgumentException
- If the given identifier does not map to a AuthenticationType
.@Nonnull public static AuthenticationType ofIdentifierOrDefault(@Nullable String identifier, @Nonnull AuthenticationType defaultAuthenticationType)
AuthenticationType
which equals the given identifier, or the
defaultAuthenticationType
in case there is none.identifier
- The identifier to get a AuthenticationType
for.defaultAuthenticationType
- The AuthenticationType
to return if no matching AuthenticationType
could be found.AuthenticationType
or the default, if none is matching.public String getIdentifier()
Copyright © 2019 SAP SE. All rights reserved.