Uses of Interface
org.forgerock.opendj.ldap.ByteSequence
-
Packages that use ByteSequence Package Description org.forgerock.opendj.io Classes and interfaces providing I/O functionality.org.forgerock.opendj.ldap Classes and interfaces for core types including connections, entries, and attributes.org.forgerock.opendj.ldap.schema Classes and interfaces for constructing and querying LDAP schemas.org.forgerock.opendj.rest2ldap.schema This package contains LDAP schema syntaxes and matching rules for JSON based attributes.org.forgerock.opendj.security An LDAP based security provider having the name "OpenDJ" and exposing an LDAP/LDIF basedKeyStore
service.org.opends.server.api Contains a number of API declarations for use throughout the Directory Server.org.opends.server.backends.pluggable.spi Interfaces and classes required when implementing new storage engines for the pluggable backend.org.opends.server.core Contains various classes that comprise the core of the Directory Server codebase.org.opends.server.crypto This package implements the Directory Server cryptographic framework, which is described in the CrytpoManager design document.org.opends.server.extensions Contains various implementations of Directory Server APIs that are not appropriate for other packages.org.opends.server.replication.common This package contains utilities that can are used by all the packages below org.opends.server.replication.org.opends.server.replication.plugin This package contains the part of the Multi-master replication code that works on the Directory Server side.org.opends.server.util Contains implementations for various Directory Server utility classes and methods which may be used throughout the server but do not necessarily fit in elsewhere. -
-
Uses of ByteSequence in org.forgerock.opendj.io
Methods in org.forgerock.opendj.io with parameters of type ByteSequence Modifier and Type Method Description static Asn1Reader
Asn1. getReader(ByteSequence sequence)
Returns an ASN.1 reader whose source is the provided byte sequence and having an unlimited maximum BER element size.static Asn1Reader
Asn1. getReader(ByteSequence sequence, int maxElementSize)
Returns an ASN.1 reader whose source is the provided byte sequence and having a user defined maximum BER element size.Asn1Writer
Asn1Writer. writeAsn1Element(ByteSequence asn1Element)
Writes exactly the provided byte sequence without encoding the data.Asn1Writer
Asn1Writer. writeOctetString(byte type, ByteSequence value)
Writes an octet string element using the provided type tag.Asn1Writer
Asn1Writer. writeOctetString(ByteSequence value)
Writes an octet string element using the Universal Octet String ASN.1 type tag.Method parameters in org.forgerock.opendj.io with type arguments of type ByteSequence Modifier and Type Method Description Asn1Writer
Asn1Writer. writeSequenceOfOctetStrings(Collection<? extends ByteSequence> values)
Writes a sequence of octet string elements using the Universal Sequence ASN.1 type tag for the sequence and Universal Octet String ASN.1 type tag for the elements.Asn1Writer
Asn1Writer. writeSetOfOctetStrings(Collection<? extends ByteSequence> values)
Writes a set of octet string elements using the Universal Set ASN.1 type tag for the set and Universal Octet String ASN.1 type tag for the elements. -
Uses of ByteSequence in org.forgerock.opendj.ldap
Classes in org.forgerock.opendj.ldap that implement ByteSequence Modifier and Type Class Description class
ByteString
An immutable sequence of bytes backed by a byte array.class
ByteStringBuilder
A mutable sequence of bytes backed by a byte array.Fields in org.forgerock.opendj.ldap with type parameters of type ByteSequence Modifier and Type Field Description static Comparator<ByteSequence>
ByteSequence. COMPARATOR
A ByteSequence comparator.Methods in org.forgerock.opendj.ldap that return ByteSequence Modifier and Type Method Description ByteSequence
ByteSequenceReader. readByteSequence(int length)
Relative bulk read method.ByteSequence
ByteSequence. subSequence(int start)
Returns a new byte sequence that is a subsequence of this byte sequence.ByteSequence
ByteSequence. subSequence(int start, int size)
Returns a new byte sequence that is a subsequence of this byte sequence.ByteSequence
ByteStringBuilder. subSequence(int start)
Returns a new byte sequence that is a subsequence of this byte sequence.ByteSequence
ByteStringBuilder. subSequence(int start, int size)
Returns a new byte sequence that is a subsequence of this byte sequence.Methods in org.forgerock.opendj.ldap with parameters of type ByteSequence Modifier and Type Method Description ByteStringBuilder
ByteStringBuilder. appendBytes(ByteSequence bytes)
Appends the providedByteSequence
to this byte string builder.int
ByteSequence. compareTo(ByteSequence o)
Compares this byte sequence with the specified byte sequence for order.int
ByteString. compareTo(ByteSequence o)
int
ByteStringBuilder. compareTo(ByteSequence o)
static String
Base64. encode(ByteSequence bytes)
Encodes the provided data as a base64 string.static Assertion
Assertion. greaterOrEqualAssertion(String indexId, ByteSequence normalizedAssertionValue)
Returns an assertion for greater than or equal comparisons.static Assertion
Assertion. greaterThanAssertion(String indexId, ByteSequence normalizedAssertionValue)
Returns an assertion for greater than comparisons.static boolean
AuthPassword. isEncoded(ByteSequence value)
Indicates whether the provided value is encoded using the auth password syntax.static boolean
UserPassword. isEncoded(ByteSequence value)
Indicates whether the provided value is encoded using the user password syntax.static Assertion
Assertion. lessOrEqualAssertion(String indexId, ByteSequence normalizedAssertionValue)
Returns an assertion for less than or equal comparisons.static Assertion
Assertion. lessThanAssertion(String indexId, ByteSequence normalizedAssertionValue)
Returns an assertion for less than comparisons.ConditionResult
Assertion. matches(ByteSequence normalizedAttributeValue)
Indicates whether the provided attribute value should be considered a match for this assertion value according to the matching rule.ConditionResult
AbstractAttribute. matchesApproximateAssertion(Assertion assertion, ByteSequence rawAssertion)
ConditionResult
Attribute. matchesApproximateAssertion(Assertion assertion, ByteSequence rawAssertion)
Indicates whether this attribute matches the specified assertion using the attribute's default approximate matching rule.ConditionResult
AbstractAttribute. matchesEqualityAssertion(Assertion assertion, ByteSequence rawAssertion)
ConditionResult
Attribute. matchesEqualityAssertion(Assertion assertion, ByteSequence rawAssertion)
Indicates whether this attribute matches the specified assertion using the attribute's default equality matching rule.ConditionResult
LinkedAttribute. matchesEqualityAssertion(Assertion assertion, ByteSequence rawAssertion)
NOTE: it is only possible to optimize for the equality matching rule because the other matching rules may not be compatible with the equality matching rule's normalized representation.ConditionResult
AbstractAttribute. matchesGreaterOrEqualAssertion(Assertion assertion, ByteSequence rawAssertion)
ConditionResult
Attribute. matchesGreaterOrEqualAssertion(Assertion assertion, ByteSequence rawAssertion)
Indicates whether this attribute matches the specified assertion using the attribute's default ordering matching rule.ConditionResult
AbstractAttribute. matchesLessOrEqualAssertion(Assertion assertion, ByteSequence rawAssertion)
ConditionResult
Attribute. matchesLessOrEqualAssertion(Assertion assertion, ByteSequence rawAssertion)
Indicates whether this attribute matches the specified assertion using the attribute's default ordering matching rule.ConditionResult
AbstractAttribute. matchesSubstringAssertion(Assertion assertion, ByteSequence rawInitialSubstring, List<? extends ByteSequence> rawAnySubstrings, ByteSequence rawFinalSubstring)
ConditionResult
Attribute. matchesSubstringAssertion(Assertion assertion, ByteSequence rawInitialSubstring, List<? extends ByteSequence> rawAnySubstrings, ByteSequence rawFinalSubstring)
Indicates whether this attribute matches the specified assertion using the attribute's default ordering matching rule.boolean
ByteSequence. startsWith(ByteSequence prefix)
Tests if this ByteSequence starts with the specified prefix.boolean
ByteString. startsWith(ByteSequence prefix)
boolean
ByteStringBuilder. startsWith(ByteSequence prefix)
Method parameters in org.forgerock.opendj.ldap with type arguments of type ByteSequence Modifier and Type Method Description default ConditionResult
Assertion. matchesAny(Set<? extends ByteSequence> normalizedAttributeValues)
Indicates whether the provided attribute values should be considered a match for this assertion value according to the matching rule.ConditionResult
AbstractAttribute. matchesSubstringAssertion(Assertion assertion, ByteSequence rawInitialSubstring, List<? extends ByteSequence> rawAnySubstrings, ByteSequence rawFinalSubstring)
ConditionResult
Attribute. matchesSubstringAssertion(Assertion assertion, ByteSequence rawInitialSubstring, List<? extends ByteSequence> rawAnySubstrings, ByteSequence rawFinalSubstring)
Indicates whether this attribute matches the specified assertion using the attribute's default ordering matching rule.Constructors in org.forgerock.opendj.ldap with parameters of type ByteSequence Constructor Description ByteStringBuilder(ByteSequence bs)
Creates a new byte string builder with the content of the provided ByteSequence. -
Uses of ByteSequence in org.forgerock.opendj.ldap.schema
Methods in org.forgerock.opendj.ldap.schema with parameters of type ByteSequence Modifier and Type Method Description T
IndexQueryFactory. createExactMatchQuery(AttributeDescription attributeDescription, String indexId, ByteSequence key)
Returns a query requesting an index record matching the provided key.void
Indexer. createKeys(ByteSequence value, Consumer<ByteString> keyConsumer)
Generates the set of index keys for an attribute.T
IndexQueryFactory. createRangeMatchQuery(AttributeDescription attributeDescription, String indexId, ByteSequence lower, ByteSequence upper, boolean lowerIncluded, boolean upperIncluded)
Returns a query requesting all index records in the specified range.Assertion
AbstractOrderingMatchingRuleImpl. getAssertion(Schema schema, ByteSequence value)
Assertion
MatchingRule. getAssertion(ByteSequence value)
Returns the normalized form of the provided assertion value, which is best suited for efficiently performing matching operations on that value.default Assertion
MatchingRuleImpl. getAssertion(Schema schema, ByteSequence assertionValue)
Retrieves the normalized form of the provided assertion value, which is best suited for efficiently performing less than matching operations on that value.Assertion
AbstractOrderingMatchingRuleImpl. getGreaterOrEqualAssertion(Schema schema, ByteSequence value)
Assertion
MatchingRule. getGreaterOrEqualAssertion(ByteSequence value)
Returns the normalized form of the provided assertion value, which is best suited for efficiently performing greater than or equal ordering matching operations on that value.default Assertion
MatchingRuleImpl. getGreaterOrEqualAssertion(Schema schema, ByteSequence value)
Retrieves the normalized form of the provided assertion value, which is best suited for efficiently performing greater than or equal matching operations on that value.Assertion
AbstractOrderingMatchingRuleImpl. getLessOrEqualAssertion(Schema schema, ByteSequence value)
Assertion
MatchingRule. getLessOrEqualAssertion(ByteSequence value)
Returns the normalized form of the provided assertion value, which is best suited for efficiently performing greater than or equal ordering matching operations on that value.default Assertion
MatchingRuleImpl. getLessOrEqualAssertion(Schema schema, ByteSequence value)
Retrieves the normalized form of the provided assertion value, which is best suited for efficiently performing less than or equal matching operations on that value.Assertion
MatchingRule. getSubstringAssertion(ByteSequence subInitial, List<? extends ByteSequence> subAnyElements, ByteSequence subFinal)
Returns the normalized form of the provided assertion substring values, which is best suited for efficiently performing matching operations on that value.default Assertion
MatchingRuleImpl. getSubstringAssertion(Schema schema, ByteSequence subInitial, List<? extends ByteSequence> subAnyElements, ByteSequence subFinal)
Retrieves the normalized form of the provided assertion substring values, which is best suited for efficiently performing matching operations on that value.String
Indexer. keyToHumanReadableString(ByteSequence key)
Returns a human readable representation of the key.ByteString
MatchingRule. normalizeAttributeValue(ByteSequence value)
Returns the normalized form of the provided attribute value, which is best suited for efficiently performing matching operations on that value.ByteString
MatchingRuleImpl. normalizeAttributeValue(Schema schema, ByteSequence value)
Retrieves the normalized form of the provided attribute value, which is best suited for efficiently performing matching operations on that value.boolean
Syntax. valueIsAcceptable(ByteSequence value, LocalizableMessageBuilder invalidReason)
Indicates whether the provided value is acceptable for use in an attribute with this syntax.boolean
SyntaxImpl. valueIsAcceptable(Schema schema, ByteSequence value, LocalizableMessageBuilder invalidReason)
Indicates whether the provided value is acceptable for use in an attribute with this syntax.Method parameters in org.forgerock.opendj.ldap.schema with type arguments of type ByteSequence Modifier and Type Method Description Assertion
MatchingRule. getSubstringAssertion(ByteSequence subInitial, List<? extends ByteSequence> subAnyElements, ByteSequence subFinal)
Returns the normalized form of the provided assertion substring values, which is best suited for efficiently performing matching operations on that value.default Assertion
MatchingRuleImpl. getSubstringAssertion(Schema schema, ByteSequence subInitial, List<? extends ByteSequence> subAnyElements, ByteSequence subFinal)
Retrieves the normalized form of the provided assertion substring values, which is best suited for efficiently performing matching operations on that value. -
Uses of ByteSequence in org.forgerock.opendj.rest2ldap.schema
Methods in org.forgerock.opendj.rest2ldap.schema with parameters of type ByteSequence Modifier and Type Method Description static Object
JsonSchema. byteStringToJson(ByteSequence value)
Parses the provided byte string as a JSON value.static Pair<Dn,Object>
JsonSchema. byteStringToNameAndJson(Schema schema, ByteSequence value)
Decodes the provided value as a Name and JSON value.static Dn
JsonSchema. byteStringToNameWithoutJson(Schema schema, ByteSequence value)
Decodes the provided value as a Name and JSON value but without decoding the JSON value.static ByteString
JsonSchema. nameAndJsonToByteString(ByteSequence nameAndJsonValue, Dn newName)
-
Uses of ByteSequence in org.forgerock.opendj.security
Methods in org.forgerock.opendj.security that return ByteSequence Modifier and Type Method Description ByteSequence
ExternalKeyWrappingStrategy. unwrapKey(ByteSequence wrappedKey)
Unwraps the providedwrapped
key.ByteSequence
ExternalKeyWrappingStrategy. wrapKey(ByteSequence unwrappedKey)
Wraps the provided encoded key.Methods in org.forgerock.opendj.security with parameters of type ByteSequence Modifier and Type Method Description ScramCredential
ScramMechanism. newScramCredential(ByteSequence password)
Generates a new SCRAM credential suitable for storage in the server, using an iteration count of 10000.ScramCredential
ScramMechanism. newScramCredential(ByteSequence password, int iterations)
Generates a new SCRAM credential suitable for storage in the server.SaslServer
ScramMechanism. newScramSaslServer(CallbackHandler callbackHandler, ByteSequence pepper)
Returns a newSaslServer
for this SCRAM mechanism.boolean
ScramMechanism. passwordMatches(ScramCredential scramCredential, ByteSequence password)
Returnstrue
if the password matches the stored SCRAM credentials.ByteSequence
ExternalKeyWrappingStrategy. unwrapKey(ByteSequence wrappedKey)
Unwraps the providedwrapped
key.ByteSequence
ExternalKeyWrappingStrategy. wrapKey(ByteSequence unwrappedKey)
Wraps the provided encoded key. -
Uses of ByteSequence in org.opends.server.api
Methods in org.opends.server.api with parameters of type ByteSequence Modifier and Type Method Description boolean
PasswordStorageScheme. authPasswordMatches(ByteSequence plaintextPassword, String authInfo, String authValue)
Indicates whether the provided plaintext password matches the encoded password using the authentication password syntax with the given authInfo and authValue components.ByteString
PasswordStorageScheme. encodeAuthPassword(ByteSequence plaintext)
Encodes the provided plaintext password for this storage scheme using the authentication password syntax defined in RFC 3112.abstract ByteString
PasswordStorageScheme. encodePassword(ByteSequence plaintext)
Encodes the provided plaintext password for this storage scheme, without the name of the associated scheme.ByteString
PasswordStorageScheme. encodePasswordWithScheme(ByteSequence plaintext)
Encodes the provided plaintext password for this storage scheme, prepending the name of the scheme in curly braces.ByteString
PasswordStorageScheme. getPlaintextValue(ByteSequence storedPassword)
Retrieves the original plaintext value for the provided stored password.boolean
PasswordStorageScheme. isRehashNeeded(ByteSequence storedPassword)
Indicates whether the encoded password needs to be rehashed because the password storage scheme configuration changed.abstract boolean
PasswordStorageScheme. passwordMatches(ByteSequence plaintextPassword, ByteSequence storedPassword)
Indicates whether the provided plaintext password included in a bind request matches the given stored value. -
Uses of ByteSequence in org.opends.server.backends.pluggable.spi
Methods in org.opends.server.backends.pluggable.spi that return ByteSequence Modifier and Type Method Description ByteSequence
UpdateFunction. computeNewValue(ByteSequence oldValue)
Computes the new value for a record based on the record's existing content.Methods in org.opends.server.backends.pluggable.spi with parameters of type ByteSequence Modifier and Type Method Description ByteSequence
UpdateFunction. computeNewValue(ByteSequence oldValue)
Computes the new value for a record based on the record's existing content.default boolean
WriteableTransaction. delete(TreeName treeName, ByteSequence key)
Deletes the record with the provided key, in the tree whose name is provided.void
Importer. put(TreeName treeName, ByteSequence key, ByteSequence value)
Creates a record with the provided key and value in the tree identified by the provided name.default void
WriteableTransaction. put(TreeName treeName, ByteSequence key, ByteSequence value)
Adds a record with the provided key and value, replacing any existing record having the same key.ByteString
Importer. read(TreeName treeName, ByteSequence key)
Reads the record's value associated to the provided key, in the tree whose name is provided.default ByteString
ReadableTransaction. read(TreeName treeName, ByteSequence key)
Reads the record's value associated to the provided key, in the tree whose name is provided.default boolean
WriteableTransaction. update(TreeName treeName, ByteSequence key, UpdateFunction f)
Atomically adds, deletes, or replaces a record with the provided key according to the new value computed by the update function. -
Uses of ByteSequence in org.opends.server.core
Methods in org.opends.server.core with parameters of type ByteSequence Modifier and Type Method Description static boolean
PasswordVerifier. authPasswordMatches(ByteSequence plaintextPassword, String encodedPassword)
Indicates whether the provided plaintext password matches the encoded password using the authentication password syntax.static boolean
PasswordVerifier. authPasswordMatches(PasswordStorageScheme<?> scheme, ByteSequence plaintextPassword, AuthPassword password)
Indicates whether the provided plaintext password matches the encoded password using the authentication password syntax.boolean
PasswordVerifier. passwordMatches(ByteSequence plaintextPassword, String encodedPassword)
Indicates whether the provided plaintext password matches the encoded password.static boolean
PasswordVerifier. userPasswordMatches(ByteSequence plaintextPassword, String encodedPassword)
Indicates whether the provided plaintext password matches the encoded password using the user password syntax.static boolean
PasswordVerifier. userPasswordMatches(PasswordStorageScheme<?> scheme, ByteSequence plaintextPassword, UserPassword password)
Indicates whether the provided plaintext password matches the encoded password using the user password syntax. -
Uses of ByteSequence in org.opends.server.crypto
Methods in org.opends.server.crypto that return ByteSequence Modifier and Type Method Description ByteSequence
CryptoManager.CipherService. getEncodedSecretKeys()
Return the list of active and previously used secret keys encoded as an ASN.1 sequence.Methods in org.opends.server.crypto with parameters of type ByteSequence Modifier and Type Method Description CryptoManager.CipherService
CryptoManager.CipherService. useKeysFromEncoding(ByteSequence wrappedKeys)
Use the provided encoded secret keys for cryptographic operations. -
Uses of ByteSequence in org.opends.server.extensions
Methods in org.opends.server.extensions with parameters of type ByteSequence Modifier and Type Method Description boolean
PKCS5S2PasswordStorageScheme. authPasswordMatches(ByteSequence plaintextPassword, String authInfo, String authValue)
ByteString
PKCS5S2PasswordStorageScheme. encodeAuthPassword(ByteSequence plaintext)
ByteString
Argon2PasswordStorageScheme. encodePassword(ByteSequence plaintext)
ByteString
Base64PasswordStorageScheme. encodePassword(ByteSequence plaintext)
ByteString
BcryptPasswordStorageScheme. encodePassword(ByteSequence plaintext)
ByteString
ClearPasswordStorageScheme. encodePassword(ByteSequence plaintext)
ByteString
CryptPasswordStorageScheme. encodePassword(ByteSequence plaintext)
ByteString
PKCS5S2PasswordStorageScheme. encodePassword(ByteSequence plaintext)
ByteString
Base64PasswordStorageScheme. getPlaintextValue(ByteSequence storedPassword)
ByteString
ClearPasswordStorageScheme. getPlaintextValue(ByteSequence storedPassword)
boolean
Argon2PasswordStorageScheme. isRehashNeeded(ByteSequence storedPassword)
boolean
BcryptPasswordStorageScheme. isRehashNeeded(ByteSequence storedPassword)
boolean
Argon2PasswordStorageScheme. passwordMatches(ByteSequence plaintextPassword, ByteSequence storedPassword)
boolean
Base64PasswordStorageScheme. passwordMatches(ByteSequence plaintextPassword, ByteSequence storedPassword)
boolean
BcryptPasswordStorageScheme. passwordMatches(ByteSequence plaintextPassword, ByteSequence storedPassword)
boolean
ClearPasswordStorageScheme. passwordMatches(ByteSequence plaintextPassword, ByteSequence storedPassword)
boolean
CryptPasswordStorageScheme. passwordMatches(ByteSequence plaintextPassword, ByteSequence storedPassword)
boolean
PKCS5S2PasswordStorageScheme. passwordMatches(ByteSequence plaintextPassword, ByteSequence storedPassword)
-
Uses of ByteSequence in org.opends.server.replication.common
Methods in org.opends.server.replication.common with parameters of type ByteSequence Modifier and Type Method Description static CSN
CSN. valueOf(ByteSequence bs)
Decodes the providedCSN.toByteString(CsnVersion)
representation of a CSN. -
Uses of ByteSequence in org.opends.server.replication.plugin
Methods in org.opends.server.replication.plugin with parameters of type ByteSequence Modifier and Type Method Description Assertion
HistoricalCsnOrderingMatchingRuleImpl. getAssertion(Schema schema, ByteSequence value)
Assertion
HistoricalCsnRangeMatchingRuleImpl. getAssertion(Schema schema, ByteSequence assertionValue)
Assertion
HistoricalCsnOrderingMatchingRuleImpl. getGreaterOrEqualAssertion(Schema schema, ByteSequence value)
Assertion
HistoricalCsnOrderingMatchingRuleImpl. getLessOrEqualAssertion(Schema schema, ByteSequence value)
ConditionResult
EntryHistoricalAttribute. matchesApproximateAssertion(Assertion assertion, ByteSequence rawAssertion)
ConditionResult
EntryHistoricalAttribute. matchesEqualityAssertion(Assertion assertion, ByteSequence rawAssertion)
ConditionResult
EntryHistoricalAttribute. matchesGreaterOrEqualAssertion(Assertion assertion, ByteSequence rawAssertion)
ConditionResult
EntryHistoricalAttribute. matchesLessOrEqualAssertion(Assertion assertion, ByteSequence rawAssertion)
ConditionResult
EntryHistoricalAttribute. matchesSubstringAssertion(Assertion assertion, ByteSequence rawInitialSubstring, List<? extends ByteSequence> rawAnySubstrings, ByteSequence rawFinalSubstring)
ByteString
HistoricalCsnOrderingMatchingRuleImpl. normalizeAttributeValue(Schema schema, ByteSequence value)
ByteString
HistoricalCsnRangeMatchingRuleImpl. normalizeAttributeValue(Schema schema, ByteSequence value)
Method parameters in org.opends.server.replication.plugin with type arguments of type ByteSequence Modifier and Type Method Description ConditionResult
EntryHistoricalAttribute. matchesSubstringAssertion(Assertion assertion, ByteSequence rawInitialSubstring, List<? extends ByteSequence> rawAnySubstrings, ByteSequence rawFinalSubstring)
-
Uses of ByteSequence in org.opends.server.util
Methods in org.opends.server.util with parameters of type ByteSequence Modifier and Type Method Description static String
StaticUtils. bytesToHex(ByteSequence b)
Retrieves a string representation of the contents of the provided byte sequence using hexadecimal characters and a space between each byte.static boolean
StaticUtils. needsBase64Encoding(ByteSequence valueBytes)
Indicates whether the provided value needs to be base64-encoded if it is represented in LDIF form.
-