keycloak
|
静的公開メンバ関数 | |
static final String | formatDate (Date date) |
static final Date | parseDate (String date) |
static String | convertObjectGUIToByteString (byte[] objectGUID) |
static String | decodeObjectGUID (byte[] objectGUID) |
静的非公開メンバ関数 | |
static String | convertToDashedString (byte[] objectGUID) |
static String | prefixZeros (int value) |
Utility class for working with LDAP.
|
inlinestatic |
Creates a byte-based String representation of a raw byte array representing the value of the objectGUID
attribute retrieved from Active Directory.
The returned string is useful to perform queries on AD based on the objectGUID
value. Eg.:
String filter = "(&(objectClass=*)(objectGUID" + EQUAL + convertObjectGUIToByteString(objectGUID) + "))";
objectGUID | A raw byte array representing the value of the objectGUID attribute retrieved from Active Directory. |
|
inlinestaticprivate |
|
inlinestatic |
Decode a raw byte array representing the value of the objectGUID
attribute retrieved from Active Directory.
The returned string is useful to directly bind an entry. Eg.:
String bindingString = decodeObjectGUID(objectGUID);
Attributes attributes = ctx.getAttributes(bindingString);
objectGUID | A raw byte array representing the value of the objectGUID attribute retrieved from Active Directory. |
|
inlinestatic |
Formats the given date.
date | The Date to format. |
|
inlinestatic |
Parses dates/time stamps stored in LDAP. Some possible values:
date | The date string to parse from. |
|
inlinestaticprivate |