Package org.forgerock.openam.tokens
A collection of classes is given here for describing how to store a bean-compliant POJO as a token. An example usage
is given below:
@Type(TokenType.MY_TOKEN_TYPE)
public class MyBean {
@Field(CoreTokenField.TOKEN_ID`)
private String id;
@Field(CoreTokenField.STRING_ONE)
private String name;
@Field(CoreTokenField.BLOB, converter = MapToJsonBytesConverter.class)
private Map<String,?> complexData;
// getters and setters follow...
}
-
Interface Summary Interface Description Converter<F,T> A custom converter that allows non-CTS-native types to be converted to those that can be stored. -
Class Summary Class Description Converter.IdentityConverter An identity converter that converts an object to the same object.JsonValueToJsonBytesConverter A custom converter that convertedJsonValues tobytearrays.LongToCalendarConverter A custom converter that convertedLongs toCalendars.MapToJsonBytesConverter A custom converter that convertedMaps tobytearrays.MapToJsonStringConverter A custom converter that convertedMaps to JSONStrings.SetToJsonBytesConverter A custom converter that convertedSets tobytearrays. -
Enum Summary Enum Description CoreTokenField CoreTokenField contains a mapping from the Java enumeration and the defined attributes present in the LDAP Schema for the Core Token Service.TokenType Responsible for defining the available token types in the Core Token Service. -
Annotation Types Summary Annotation Type Description Field Annotate fields in POJOs with this annotation to designate storage in CTS.Type Annotation to declare a token type.