Enum ProfileSection
- All Implemented Interfaces:
Serializable
,Comparable<ProfileSection>
Enum describing all the valid section names supported by SDK.
The section declares that the attributes that follow are part of a named collection of attributes.
-
Enum Constant Summary
Enum ConstantDescriptionAn `sso-session` section declares that the attributes that follow (until another section definition is encountered) are part of a named collection of attributes. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProfileSection
fromPropertyKeyName
(String propertyName) static ProfileSection
fromSectionTitle
(String sectionTitle) static ProfileSection
Returns the enum constant of this type with the specified name.static ProfileSection[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SSO_SESSION
An `sso-session` section declares that the attributes that follow (until another section definition is encountered) are part of a named collection of attributes. This `sso-session` section is referenced by the user when configuring a profile to derive an SSO token.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromSectionTitle
- Parameters:
sectionTitle
- The section title in the config or credential file.- Returns:
- ProfileSection enum that has title name as sectionTitle
-
fromPropertyKeyName
- Parameters:
propertyName
- The property definition of a key that points to a Section.- Returns:
- ProfileSection enum that corresponds to a propertyKeyName for the given propertyName.
-
getSectionTitle
- Returns:
- Gets the section title name for the given
ProfileSection
.
-
getPropertyKeyName
- Returns:
- Gets the property Hey name for the given
ProfileSection
.
-