Package org.opensaml.saml.security
Enum SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap
- java.lang.Object
-
- java.lang.Enum<SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap>
-
- org.opensaml.saml.security.SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap
-
- All Implemented Interfaces:
Serializable,Comparable<SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap>
- Enclosing class:
- SAMLMetadataKeyAgreementEncryptionConfiguration
public static enum SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap extends Enum<SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap>
Options for whether to use symmetric key wrap with credentials from SAML metadata.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AlwaysAlways use key wrap for metadata credentials.DefaultDefault behavior, which is to enable key wrap or not based on the presence or absence respectively ofEncryptionMethodelements in the associatedKeyDescriptorcontaining symmetric key wrap algorithms.IfNotIndicatedUse key wrap if no indication is given viaEncryptionMethodelements within the associatedKeyDescriptorelement.NeverNever use key wrap for metadata credentials.
-
Constructor Summary
Constructors Modifier Constructor Description privateKeyWrap()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrapvalueOf(String name)Returns the enum constant of this type with the specified name.static SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Always
public static final SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap Always
Always use key wrap for metadata credentials.
-
Never
public static final SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap Never
Never use key wrap for metadata credentials.
-
IfNotIndicated
public static final SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap IfNotIndicated
Use key wrap if no indication is given viaEncryptionMethodelements within the associatedKeyDescriptorelement. See alsoDefault.
-
Default
public static final SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap Default
Default behavior, which is to enable key wrap or not based on the presence or absence respectively ofEncryptionMethodelements in the associatedKeyDescriptorcontaining symmetric key wrap algorithms. The presence of any symmetric key wrap algorithms (after runtime support and include/exclude filtering) will enable key wrap. Otherwise, key wrap will be disabled.
-
-
Method Detail
-
values
public static SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap c : SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SAMLMetadataKeyAgreementEncryptionConfiguration.KeyWrap valueOf(String name)
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
-
-