Package org.keycloak.protocol.saml
Enum SAMLEncryptionAlgorithms
- java.lang.Object
- 
- java.lang.Enum<SAMLEncryptionAlgorithms>
- 
- org.keycloak.protocol.saml.SAMLEncryptionAlgorithms
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<SAMLEncryptionAlgorithms>
 
 public enum SAMLEncryptionAlgorithms extends Enum<SAMLEncryptionAlgorithms> 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.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SAMLEncryptionAlgorithmsforKeycloakIdentifier(String keycloakIdentifier)static SAMLEncryptionAlgorithmsforXMLEncIdentifier(String xmlEncIdentifier)StringgetKeycloakIdentifier()StringgetXmlEncIdentifier()static SAMLEncryptionAlgorithmsvalueOf(String name)Returns the enum constant of this type with the specified name.static SAMLEncryptionAlgorithms[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
RSA_OAEPpublic static final SAMLEncryptionAlgorithms RSA_OAEP 
 - 
RSA1_5public static final SAMLEncryptionAlgorithms RSA1_5 
 
- 
 - 
Method Detail- 
valuespublic static SAMLEncryptionAlgorithms[] 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 (SAMLEncryptionAlgorithms c : SAMLEncryptionAlgorithms.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static SAMLEncryptionAlgorithms 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 name
- NullPointerException- if the argument is null
 
 - 
getXmlEncIdentifierpublic String getXmlEncIdentifier() 
 - 
getKeycloakIdentifierpublic String getKeycloakIdentifier() 
 - 
forXMLEncIdentifierpublic static SAMLEncryptionAlgorithms forXMLEncIdentifier(String xmlEncIdentifier) 
 - 
forKeycloakIdentifierpublic static SAMLEncryptionAlgorithms forKeycloakIdentifier(String keycloakIdentifier) 
 
- 
 
-