Enum Class SecurityConfigurationStrategy
java.lang.Object
java.lang.Enum<SecurityConfigurationStrategy>
com.sap.cloud.sdk.cloudplatform.connectivity.SecurityConfigurationStrategy
- All Implemented Interfaces:
Serializable
,Comparable<SecurityConfigurationStrategy>
,Constable
Defines from where the HTTP Security Configuration for outbound HTTP calls is determined from.
The
HttpDestination
allows setting a key store and/or a trust store.
The cloud platform (i.e. the environment) may have platform-specific security settings managed by the infrastructure.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe HTTP Security Configuration is taken from configuration of theHttpDestination
.The HTTP Security Configuration is taken from the CloudPlatform. -
Method Summary
Modifier and TypeMethodDescriptionReturns the default value for theSecurityConfigurationStrategy
.ofIdentifierOrDefault
(String identifier) Returns theSecurityConfigurationStrategy
which equals the given identifier, or thegetDefault()
in case the providedidentifier
isnull
.toString()
Returns the enum constant of this class with the specified name.static SecurityConfigurationStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FROM_DESTINATION
The HTTP Security Configuration is taken from configuration of theHttpDestination
. -
FROM_PLATFORM
The HTTP Security Configuration is taken from the CloudPlatform.
-
-
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
-
getDefault
Returns the default value for theSecurityConfigurationStrategy
.- Returns:
- The default value
-
ofIdentifierOrDefault
@Nonnull public static SecurityConfigurationStrategy ofIdentifierOrDefault(@Nullable String identifier) Returns theSecurityConfigurationStrategy
which equals the given identifier, or thegetDefault()
in case the providedidentifier
isnull
.- Parameters:
identifier
- The identifier to get aSecurityConfigurationStrategy
for.- Returns:
- The matching
SecurityConfigurationStrategy
or the default, if theidentifier
isnull
. - Throws:
IllegalArgumentException
- if noSecurityConfigurationStrategy
could be found for the given identifier.
-
toString
- Overrides:
toString
in classEnum<SecurityConfigurationStrategy>
-
getIdentifier
-