Package org.keycloak.protocol.saml
Enum Class SAMLEncryptionAlgorithms
- All Implemented Interfaces:
Serializable
,Comparable<SAMLEncryptionAlgorithms>
,Constable
This enum provides mapping between Keycloak provided encryption algorithms and algorithms from xmlsec.
It is used to make sure we are using keys generated for given algorithm only with that algorithm.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SAMLEncryptionAlgorithms
forKeycloakIdentifier
(String keycloakIdentifier) Returns the SAMLEncryptionAlgorithms for the keycloak identifier.static SAMLEncryptionAlgorithms
forXMLEncIdentifier
(String xmlEncIdentifier) Returns the SAMLEncryptionAlgorithms that contains the xml enc identifier.Getter for the keycloak identifier.String[]
Getter for all the XML encoding identifiers.static SAMLEncryptionAlgorithms
Returns the enum constant of this class with the specified name.static SAMLEncryptionAlgorithms[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RSA_OAEP
-
RSA1_5
-
-
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
-
getXmlEncIdentifiers
Getter for all the XML encoding identifiers. There should be at least one.- Returns:
- The array of XML encoding identifiers
-
getKeycloakIdentifier
Getter for the keycloak identifier.- Returns:
- The keycloak identifier.
-
forXMLEncIdentifier
Returns the SAMLEncryptionAlgorithms that contains the xml enc identifier.- Parameters:
xmlEncIdentifier
- The Xml encoding identifier- Returns:
- The associated SAMLEncryptionAlgorithms or null
-
forKeycloakIdentifier
Returns the SAMLEncryptionAlgorithms for the keycloak identifier.- Parameters:
keycloakIdentifier
- The keycloak identifier- Returns:
- The associated SAMLEncryptionAlgorithms or null
-