@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class HexPasswordEncoderOutputFormatter extends PasswordEncoderOutputFormatter
Modifier and Type | Method and Description |
---|---|
byte[] |
format(byte[] unformattedData)
Formats the provided data in accordance with this output format.
|
static HexPasswordEncoderOutputFormatter |
getLowercaseInstance()
Retrieves a singleton instance of this hex password encoder that will
represent the hexadecimal digits 'A' through 'F' as lowercase letters.
|
static HexPasswordEncoderOutputFormatter |
getUppercaseInstance()
Retrieves a singleton instance of this hex password encoder that will
represent the hexadecimal digits 'A' through 'F' as uppercase letters.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this password encoder output formatter
to the provided buffer.
|
byte[] |
unFormat(byte[] formattedData)
Reverses the formatting that has been applied to the provided data.
|
boolean |
useLowercaseLetters()
Indicates whether to represent the hexadecimal digits 'A' through 'F' as
lowercase letters or uppercase letters.
|
toString
@NotNull public static HexPasswordEncoderOutputFormatter getLowercaseInstance()
@NotNull public static HexPasswordEncoderOutputFormatter getUppercaseInstance()
public boolean useLowercaseLetters()
true
if hexadecimal digits 'A' through 'F' should be
represented as lowercase letters, or false
if they should
be represented as uppercase letters.@NotNull public byte[] format(@NotNull byte[] unformattedData) throws LDAPException
format
in class PasswordEncoderOutputFormatter
unformattedData
- The data to be formatted. It must not be
null
.LDAPException
- If a problem is encountered while formatting the
provided data.@NotNull public byte[] unFormat(@NotNull byte[] formattedData) throws LDAPException
unFormat
in class PasswordEncoderOutputFormatter
formattedData
- The formatted data to be un-formatted. It must not
be null
.LDAPException
- If the provided data does not represent a valid
encoding, or if a problem is encountered while
un-formatting the provided data.public void toString(@NotNull java.lang.StringBuilder buffer)
toString
in class PasswordEncoderOutputFormatter
buffer
- The buffer to which the information should be appended.