Package se.idsec.utils.printcert.enums
Enum AttributeValueEncoding
- java.lang.Object
-
- java.lang.Enum<AttributeValueEncoding>
-
- se.idsec.utils.printcert.enums.AttributeValueEncoding
-
- All Implemented Interfaces:
Serializable,Comparable<AttributeValueEncoding>
public enum AttributeValueEncoding extends Enum<AttributeValueEncoding>
- Author:
- stefan
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IA5StringPritableStringUTF8
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ASN1EncodablegetEncodedAttributeVal(String value)static AttributeValueEncodingvalueOf(String name)Returns the enum constant of this type with the specified name.static AttributeValueEncoding[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PritableString
public static final AttributeValueEncoding PritableString
-
UTF8
public static final AttributeValueEncoding UTF8
-
IA5String
public static final AttributeValueEncoding IA5String
-
-
Method Detail
-
values
public static AttributeValueEncoding[] 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 (AttributeValueEncoding c : AttributeValueEncoding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeValueEncoding 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
-
getEncodedAttributeVal
public ASN1Encodable getEncodedAttributeVal(String value)
-
-