Package org.keycloak.saml.common.util
Enum XmlKeyInfoKeyNameTransformer
- java.lang.Object
-
- java.lang.Enum<XmlKeyInfoKeyNameTransformer>
-
- org.keycloak.saml.common.util.XmlKeyInfoKeyNameTransformer
-
- All Implemented Interfaces:
Serializable,Comparable<XmlKeyInfoKeyNameTransformer>
public enum XmlKeyInfoKeyNameTransformer extends Enum<XmlKeyInfoKeyNameTransformer>
- Author:
- hmlnarik
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CERT_SUBJECTKEY_IDNONE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static XmlKeyInfoKeyNameTransformerfrom(String name, XmlKeyInfoKeyNameTransformer defaultValue)abstract StringgetKeyName(String keyId, X509Certificate certificate)static XmlKeyInfoKeyNameTransformervalueOf(String name)Returns the enum constant of this type with the specified name.static XmlKeyInfoKeyNameTransformer[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final XmlKeyInfoKeyNameTransformer NONE
-
KEY_ID
public static final XmlKeyInfoKeyNameTransformer KEY_ID
-
CERT_SUBJECT
public static final XmlKeyInfoKeyNameTransformer CERT_SUBJECT
-
-
Method Detail
-
values
public static XmlKeyInfoKeyNameTransformer[] 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 (XmlKeyInfoKeyNameTransformer c : XmlKeyInfoKeyNameTransformer.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XmlKeyInfoKeyNameTransformer 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
-
getKeyName
public abstract String getKeyName(String keyId, X509Certificate certificate)
-
from
public static XmlKeyInfoKeyNameTransformer from(String name, XmlKeyInfoKeyNameTransformer defaultValue)
-
-