public class LdapTokenAttributeConversion extends Object
CoreTokenConstants.OBJECT_CLASS
Constructor and Description |
---|
LdapTokenAttributeConversion(LDAPDataConversion conversion,
LdapDataLayerConfiguration dataLayerConfiguration) |
Modifier and Type | Method and Description |
---|---|
static org.forgerock.opendj.ldap.Entry |
addObjectClass(org.forgerock.opendj.ldap.Entry entry)
Only adds the ObjectClass if it hasn't already been added.
|
org.forgerock.opendj.ldap.DN |
generateTokenDN(String tokenId) |
org.forgerock.opendj.ldap.DN |
generateTokenDN(Token token) |
org.forgerock.opendj.ldap.Entry |
getEntry(Token token)
Generate an Entry based on the given Token.
|
Map<CoreTokenField,Object> |
mapFromEntry(org.forgerock.opendj.ldap.Entry entry)
Convert an Entry into a more convenient Mapping of CoreTokenField to Object.
|
static org.forgerock.opendj.ldap.Entry |
stripObjectClass(org.forgerock.opendj.ldap.Entry entry)
Only strips out the ObjectClass if it is present.
|
Token |
tokenFromEntry(org.forgerock.opendj.ldap.Entry entry)
Convert an Entry into a Token.
|
@Inject public LdapTokenAttributeConversion(LDAPDataConversion conversion, LdapDataLayerConfiguration dataLayerConfiguration)
public org.forgerock.opendj.ldap.Entry getEntry(Token token)
token
- Non null Token to base the Entry on.public Map<CoreTokenField,Object> mapFromEntry(org.forgerock.opendj.ldap.Entry entry)
entry
- Non null entry to convert.public Token tokenFromEntry(org.forgerock.opendj.ldap.Entry entry)
entry
- A non null Entry.mapFromEntry(org.forgerock.opendj.ldap.Entry)
public static org.forgerock.opendj.ldap.Entry addObjectClass(org.forgerock.opendj.ldap.Entry entry)
entry
- Adds the ObjectClass attribute to this Entry.public static org.forgerock.opendj.ldap.Entry stripObjectClass(org.forgerock.opendj.ldap.Entry entry)
entry
- Non null Entry to process.public org.forgerock.opendj.ldap.DN generateTokenDN(Token token)
token
- Token which has a TokenId to base the DN on.public org.forgerock.opendj.ldap.DN generateTokenDN(String tokenId)
tokenId
- Token Id to base the DN on.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.