Uses of Class
org.forgerock.opendj.ldap.ByteString
Packages that use ByteString
Package
Description
Classes and interfaces providing I/O functionality.
Classes and interfaces for core types including connections, entries, and
attributes.
Classes and interfaces for common LDAP controls.
Classes and interfaces for core LDAP requests.
Classes and interfaces for core LDAP responses.
Classes and interfaces for constructing and querying LDAP schemas.
Interfaces and classes for service providers.
-
Uses of ByteString in org.forgerock.opendj.io
Methods in org.forgerock.opendj.io that return ByteStringModifier and TypeMethodDescriptionAbstractASN1Reader.readOctetString(byte type) ASN1Reader.readOctetString()Reads the next element as an octet string having the Universal Octet String ASN.1 type tag.ASN1Reader.readOctetString(byte type) Reads the next element as an octet string having the provided type tag.Methods in org.forgerock.opendj.io with parameters of type ByteStringModifier and TypeMethodDescriptionprotected DecodeExceptionAbstractLDAPMessageHandler.newUnsupportedMessageException(int messageID, byte messageTag, ByteString messageBytes) Returns a decoding exception suitable for use when an unsupported LDAP message is received.voidAbstractLDAPMessageHandler.unrecognizedMessage(int messageID, byte messageTag, ByteString messageBytes) voidLDAPMessageHandler.unrecognizedMessage(int messageID, byte messageTag, ByteString messageBytes) Handles an unrecognized LDAP message.voidLDAPWriter.writeUnrecognizedMessage(int messageID, byte messageTag, ByteString messageBytes) Writes a message with the provided id, tag and content bytes. -
Uses of ByteString in org.forgerock.opendj.ldap
Methods in org.forgerock.opendj.ldap that return ByteStringModifier and TypeMethodDescriptionAttributeParser.asByteString()Returns the first value, ornullif the attribute does not contain any values.AttributeParser.asByteString(ByteString defaultValue) Returns the first value, ordefaultValueif the attribute does not contain any values.static ByteStringDecodes the provided base64 encoded data.static ByteStringByteString.empty()Returns an empty byte string.AbstractAttribute.firstValue()Attribute.firstValue()Returns the first attribute value in this attribute.LinkedAttribute.firstValue()AVA.getAttributeValue()Returns the attribute value associated with this AVA.RDN.getAttributeValue(AttributeType attributeType) Returns the attribute value contained in this RDN which is associated with the provided attribute type, ornullif this RDN does not include such an attribute value.ByteSequenceReader.readByteString(int length) Relative bulk read method.ByteString.subSequence(int start, int end) AbstractAttribute.toArray()Attribute.toArray()Returns an array containing all of the attribute values contained in this attribute.ByteSequence.toByteString()Returns theByteStringrepresentation of this byte sequence.ByteString.toByteString()ByteStringBuilder.toByteString()Returns theByteStringrepresentation of this byte string builder.Retrieves a normalized byte string representation of this DN.static ByteStringByteString.valueOfBase64(String s) Returns a byte string containing the Base64 decoded bytes of the provided string.static ByteStringByteString.valueOfBytes(byte[] bytes) Returns a byte string containing the contents of the provided byte array.static ByteStringByteString.valueOfBytes(byte[] bytes, int offset, int length) Returns a byte string containing a subsequence of the contents of the provided byte array.static ByteStringByteString.valueOfHex(String hexString) Returns a byte string containing the bytes of the provided hexadecimal string.static ByteStringByteString.valueOfInt(int i) Returns a byte string containing the big-endian encoded bytes of the provided integer.static ByteStringByteString.valueOfLong(long l) Returns a byte string containing the big-endian encoded bytes of the provided long.static ByteStringByteString.valueOfObject(Object o) Returns a byte string representation of the provided object.static ByteStringByteString.valueOfUtf8(char[] chars) Returns a byte string containing the UTF-8 encoded bytes of the provided char array.static ByteStringByteString.valueOfUtf8(CharSequence s) Returns a byte string containing the UTF-8 encoded bytes of the provided char sequence.static ByteStringByteString.wrap(byte[] bytes) Returns a byte string that wraps the provided byte array.static ByteStringByteString.wrap(byte[] bytes, int offset, int length) Returns a byte string that wraps a subsequence of the provided byte array.Methods in org.forgerock.opendj.ldap that return types with arguments of type ByteStringModifier and TypeMethodDescriptionAttributeParser.asSetOfByteString(Collection<ByteString> defaultValues) Returns the values contained in the attribute, ordefaultValuesif the attribute does not contain any values.AttributeParser.asSetOfByteString(ByteString... defaultValues) Returns the values contained in the attribute, ordefaultValuesif the attribute does not contain any values.static org.forgerock.util.Function<ByteString, AttributeDescription, org.forgerock.i18n.LocalizedIllegalArgumentException> Functions.byteStringToAttributeDescription()Returns a function which parsesAttributeDescriptions using the default schema.static org.forgerock.util.Function<ByteString, AttributeDescription, org.forgerock.i18n.LocalizedIllegalArgumentException> Functions.byteStringToAttributeDescription(Schema schema) Returns a function which parsesAttributeDescriptions using the provided schema.static org.forgerock.util.Function<ByteString, Boolean, org.forgerock.i18n.LocalizedIllegalArgumentException> Functions.byteStringToBoolean()Returns a function which parsesBooleanvalues.static org.forgerock.util.Function<ByteString, X509Certificate, org.forgerock.i18n.LocalizedIllegalArgumentException> Functions.byteStringToCertificate()Returns a function which parsesX509Certificatevalues.static org.forgerock.util.Function<ByteString, DN, org.forgerock.i18n.LocalizedIllegalArgumentException> Functions.byteStringToDN()Returns a function which parsesDNs using the default schema.static org.forgerock.util.Function<ByteString, DN, org.forgerock.i18n.LocalizedIllegalArgumentException> Functions.byteStringToDN(Schema schema) Returns a function which parsesDNs using the provided schema.static org.forgerock.util.Function<ByteString, GeneralizedTime, org.forgerock.i18n.LocalizedIllegalArgumentException> Functions.byteStringToGeneralizedTime()Returns a function which parses generalized time strings.static org.forgerock.util.Function<ByteString, Integer, org.forgerock.i18n.LocalizedIllegalArgumentException> Functions.byteStringToInteger()Returns a function which parsesIntegerstring values.static org.forgerock.util.Function<ByteString, Long, org.forgerock.i18n.LocalizedIllegalArgumentException> Functions.byteStringToLong()Returns a function which parsesLongstring values.static org.forgerock.util.Function<ByteString, String, org.forgerock.util.promise.NeverThrowsException> Functions.byteStringToString()Returns a function which parses aByteStringas a UTF-8 encodedString.abstract Iterator<ByteString> AbstractAttribute.iterator()Attribute.iterator()Returns an iterator over the attribute values in this attribute.LinkedAttribute.iterator()static org.forgerock.util.Function<Object, ByteString, org.forgerock.util.promise.NeverThrowsException> Functions.objectToByteString()Methods in org.forgerock.opendj.ldap with parameters of type ByteStringModifier and TypeMethodDescriptionabstract booleanAbstractAttribute.add(ByteString value) booleanAttribute.add(ByteString value) Addsvalueto this attribute if it is not already present (optional operation).booleanLinkedAttribute.add(ByteString value) AttributeParser.asByteString(ByteString defaultValue) Returns the first value, ordefaultValueif the attribute does not contain any values.AttributeParser.asSetOfByteString(ByteString... defaultValues) Returns the values contained in the attribute, ordefaultValuesif the attribute does not contain any values.AbstractConnection.extendedRequest(String requestName, ByteString requestValue) AbstractConnectionWrapper.extendedRequest(String requestName, ByteString requestValue) Requests that the Directory Server performs the provided extended request.Connection.extendedRequest(String requestName, ByteString requestValue) Requests that the Directory Server performs the provided extended request.static FilterFilter.unrecognized(byte filterTag, ByteString filterBytes) Creates a newunrecognizedfilter using the provided ASN1 filter tag and content.static DNDN.valueOf(ByteString dn) Parses the provided LDAP string representation of a DN using the default schema.AbstractFilterVisitor.visitApproxMatchFilter(P p, String attributeDescription, ByteString assertionValue) Visits anapproximate matchfilter.FilterVisitor.visitApproxMatchFilter(P p, String attributeDescription, ByteString assertionValue) Visits anapproximate matchfilter.AbstractFilterVisitor.visitEqualityMatchFilter(P p, String attributeDescription, ByteString assertionValue) Visits anequality matchfilter.FilterVisitor.visitEqualityMatchFilter(P p, String attributeDescription, ByteString assertionValue) Visits anequality matchfilter.AbstractFilterVisitor.visitExtensibleMatchFilter(P p, String matchingRule, String attributeDescription, ByteString assertionValue, boolean dnAttributes) Visits anextensiblefilter.FilterVisitor.visitExtensibleMatchFilter(P p, String matchingRule, String attributeDescription, ByteString assertionValue, boolean dnAttributes) Visits anextensiblefilter.AbstractFilterVisitor.visitGreaterOrEqualFilter(P p, String attributeDescription, ByteString assertionValue) Visits agreater or equalfilter.FilterVisitor.visitGreaterOrEqualFilter(P p, String attributeDescription, ByteString assertionValue) Visits agreater or equalfilter.AbstractFilterVisitor.visitLessOrEqualFilter(P p, String attributeDescription, ByteString assertionValue) Visits aless or equalfilter.FilterVisitor.visitLessOrEqualFilter(P p, String attributeDescription, ByteString assertionValue) Visits aless or equalfilter.AbstractFilterVisitor.visitSubstringsFilter(P p, String attributeDescription, ByteString initialSubstring, List<ByteString> anySubstrings, ByteString finalSubstring) Visits asubstringsfilter.FilterVisitor.visitSubstringsFilter(P p, String attributeDescription, ByteString initialSubstring, List<ByteString> anySubstrings, ByteString finalSubstring) Visits asubstringsfilter.AbstractFilterVisitor.visitUnrecognizedFilter(P p, byte filterTag, ByteString filterBytes) Visits anunrecognizedfilter.FilterVisitor.visitUnrecognizedFilter(P p, byte filterTag, ByteString filterBytes) Visits anunrecognizedfilter.Method parameters in org.forgerock.opendj.ldap with type arguments of type ByteStringModifier and TypeMethodDescriptionbooleanAbstractAttribute.addAll(Collection<? extends ByteString> values) booleanAttribute.addAll(Collection<? extends ByteString> values) Adds all of the attribute values contained invaluesto this attribute if they are not already present (optional operation).booleanEntry.addAttribute(Attribute attribute, Collection<? super ByteString> duplicateValues) Ensures that this entry contains the provided attribute and values (optional operation).<T,E extends Exception>
TAttributeParser.as(org.forgerock.util.Function<ByteString, ? extends T, E> f) Returns the first value decoded as aTusing the providedFunction, ornullif the attribute does not contain any values.<T,E extends Exception>
TAttributeParser.as(org.forgerock.util.Function<ByteString, ? extends T, E> f, T defaultValue) Returns the first value decoded as aTusing the providedFunction, ordefaultValueif the attribute does not contain any values.AttributeParser.asSetOf(org.forgerock.util.Function<ByteString, ? extends T, E> f, Collection<? extends T> defaultValues) Returns the values decoded as a set ofTs using the providedFunction, ordefaultValuesif the attribute does not contain any values.AttributeParser.asSetOf(org.forgerock.util.Function<ByteString, ? extends T, E> f, T... defaultValues) Returns the values decoded as a set ofTs using the providedFunction, ordefaultValuesif the attribute does not contain any values.AttributeParser.asSetOfByteString(Collection<ByteString> defaultValues) Returns the values contained in the attribute, ordefaultValuesif the attribute does not contain any values.booleanAbstractEntry.containsAttribute(Attribute attribute, Collection<? super ByteString> missingValues) booleanEntry.containsAttribute(Attribute attribute, Collection<? super ByteString> missingValues) Returnstrueif this entry contains all of the attribute values contained inattribute.static EntryEntries.modifyEntry(Entry entry, Modification change, Collection<? super ByteString> conflictingValues) Applies the provided modification to an entry.booleanAbstractEntry.removeAttribute(Attribute attribute, Collection<? super ByteString> missingValues) booleanEntry.removeAttribute(Attribute attribute, Collection<? super ByteString> missingValues) Removes all of the attribute values contained inattributefrom this entry if it is present (optional operation).AbstractFilterVisitor.visitSubstringsFilter(P p, String attributeDescription, ByteString initialSubstring, List<ByteString> anySubstrings, ByteString finalSubstring) Visits asubstringsfilter.FilterVisitor.visitSubstringsFilter(P p, String attributeDescription, ByteString initialSubstring, List<ByteString> anySubstrings, ByteString finalSubstring) Visits asubstringsfilter. -
Uses of ByteString in org.forgerock.opendj.ldap.controls
Methods in org.forgerock.opendj.ldap.controls that return ByteStringModifier and TypeMethodDescriptionVirtualListViewRequestControl.getAssertionValue()Returns the assertion value that will be used to locate the target entry, if applicable.VirtualListViewRequestControl.getContextID()Returns the context ID provided by the server in the last virtual list view response for the same set of criteria, ornullif there was no previous virtual list view response or the server did not include a context ID in the last response.VirtualListViewResponseControl.getContextID()Returns a server-defined octet string which, if present, should be sent back to the server by the client in a subsequent virtual list request.SimplePagedResultsControl.getCookie()Returns the opaque cookie which is used by the server to track its position in the set of search results.ADNotificationRequestControl.getValue()AssertionRequestControl.getValue()AuthorizationIdentityRequestControl.getValue()AuthorizationIdentityResponseControl.getValue()Control.getValue()Returns the value, if any, associated with this control.EntryChangeNotificationResponseControl.getValue()GenericControl.getValue()GetEffectiveRightsRequestControl.getValue()ManageDsaITRequestControl.getValue()MatchedValuesRequestControl.getValue()PasswordExpiredResponseControl.getValue()PasswordExpiringResponseControl.getValue()PasswordPolicyRequestControl.getValue()PasswordPolicyResponseControl.getValue()PermissiveModifyRequestControl.getValue()PersistentSearchRequestControl.getValue()PostReadRequestControl.getValue()PostReadResponseControl.getValue()PreReadRequestControl.getValue()PreReadResponseControl.getValue()ProxiedAuthV1RequestControl.getValue()ProxiedAuthV2RequestControl.getValue()ServerSideSortRequestControl.getValue()ServerSideSortResponseControl.getValue()SimplePagedResultsControl.getValue()SubentriesRequestControl.getValue()SubtreeDeleteRequestControl.getValue()VirtualListViewRequestControl.getValue()VirtualListViewResponseControl.getValue()Methods in org.forgerock.opendj.ldap.controls with parameters of type ByteStringModifier and TypeMethodDescriptionVirtualListViewRequestControl.newAssertionControl(boolean isCritical, ByteString assertionValue, int beforeCount, int afterCount, ByteString contextID) Creates a new virtual list view request control that will identify the target entry by an assertion value.static SimplePagedResultsControlSimplePagedResultsControl.newControl(boolean isCritical, int size, ByteString cookie) Creates a new simple paged results control with the provided criticality, size, and cookie.VirtualListViewResponseControl.newControl(int targetPosition, int contentCount, ResultCode result, ByteString contextID) Creates a new virtual list view response control.VirtualListViewRequestControl.newOffsetControl(boolean isCritical, int offset, int contentCount, int beforeCount, int afterCount, ByteString contextID) Creates a new virtual list view request control that will identify the target entry by a positional offset within the complete result set. -
Uses of ByteString in org.forgerock.opendj.ldap.requests
Methods in org.forgerock.opendj.ldap.requests that return ByteStringModifier and TypeMethodDescriptionCompareRequest.getAssertionValue()Returns the assertion value to be compared.PasswordModifyExtendedRequest.getUserIdentity()Returns the identity of the user whose password is to be modified, ornullif the request should be applied to the user currently associated with the session.abstract ByteStringAbstractExtendedRequest.getValue()CancelExtendedRequest.getValue()ExtendedRequest.getValue()Returns the value, if any, associated with this extended request.GenericExtendedRequest.getValue()PasswordModifyExtendedRequest.getValue()StartTLSExtendedRequest.getValue()WhoAmIExtendedRequest.getValue()Method parameters in org.forgerock.opendj.ldap.requests with type arguments of type ByteStringModifier and TypeMethodDescriptionbooleanAddRequest.addAttribute(Attribute attribute, Collection<? super ByteString> duplicateValues) booleanAddRequest.containsAttribute(Attribute attribute, Collection<? super ByteString> missingValues) booleanAddRequest.removeAttribute(Attribute attribute, Collection<? super ByteString> missingValues) -
Uses of ByteString in org.forgerock.opendj.ldap.responses
Methods in org.forgerock.opendj.ldap.responses that return ByteStringModifier and TypeMethodDescriptionBindResult.getServerSASLCredentials()Returns the server SASL credentials associated with this bind result.abstract ByteStringAbstractExtendedResult.getValue()abstract ByteStringAbstractIntermediateResponse.getValue()ExtendedResult.getValue()Returns the value, if any, associated with this extended result.GenericExtendedResult.getValue()GenericIntermediateResponse.getValue()IntermediateResponse.getValue()Returns the value, if any, associated with this intermediate response.PasswordModifyExtendedResult.getValue()WhoAmIExtendedResult.getValue()Methods in org.forgerock.opendj.ldap.responses with parameters of type ByteStringModifier and TypeMethodDescriptionBindResult.setServerSASLCredentials(ByteString credentials) Sets the server SASL credentials associated with this bind result.Method parameters in org.forgerock.opendj.ldap.responses with type arguments of type ByteStringModifier and TypeMethodDescriptionbooleanSearchResultEntry.addAttribute(Attribute attribute, Collection<? super ByteString> duplicateValues) booleanSearchResultEntry.containsAttribute(Attribute attribute, Collection<? super ByteString> missingValues) booleanSearchResultEntry.removeAttribute(Attribute attribute, Collection<? super ByteString> missingValues) -
Uses of ByteString in org.forgerock.opendj.ldap.schema
Methods in org.forgerock.opendj.ldap.schema that return ByteStringModifier and TypeMethodDescriptionMatchingRule.normalizeAttributeValue(ByteSequence value) Returns the normalized form of the provided attribute value, which is best suited for efficiently performing matching operations on that value.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. -
Uses of ByteString in org.forgerock.opendj.ldap.spi
Methods in org.forgerock.opendj.ldap.spi that return ByteStringModifier and TypeMethodDescriptionLdapMessages.LdapRequestEnvelope.getRawDn()Get the raw form of theDNcontained in the message (or null if the message doesn't contains a DN).Methods in org.forgerock.opendj.ldap.spi with parameters of type ByteStringModifier and TypeMethodDescriptionLdapMessages.newRequestEnvelope(byte messageType, int messageId, int ldapVersion, ByteString rawDn, ASN1Reader reader) Creates a new invalid input: '{@link /*missing*/}' containing a partially decoded LDAP message.Method parameters in org.forgerock.opendj.ldap.spi with type arguments of type ByteStringModifier and TypeMethodDescriptionvoidIndexer.createKeys(Schema schema, ByteSequence value, Collection<ByteString> keys) Generates the set of index keys for an attribute.