Class BERDecoder
java.lang.Object
org.keycloak.storage.ldap.idm.store.ldap.BERDecoder
A decoder for the ASN.1 BER encoding.
Very limited implementation, only supports what is needed by the current LDAP extension controls.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Drain the value bytes of the next element.booleanisNextTag(int clazz, int form, int tag) Check if the next element matches with the given tag, but do not consume it.voidSkip over the next element.voidStart decoding a sequence.
-
Field Details
-
TAG_SEQUENCE
public static final int TAG_SEQUENCE- See Also:
-
TAG_CLASS_CONTEXT_SPECIFIC
public static final int TAG_CLASS_CONTEXT_SPECIFIC- See Also:
-
TAG_FORM_PRIMITIVE
public static final int TAG_FORM_PRIMITIVE- See Also:
-
-
Constructor Details
-
BERDecoder
public BERDecoder(byte[] encodedValue)
-
-
Method Details
-
startSequence
Start decoding a sequence.- Throws:
BERDecoder.DecodeException
-
isNextTag
public boolean isNextTag(int clazz, int form, int tag) Check if the next element matches with the given tag, but do not consume it. Returns false if there is no more data. -
skipElement
Skip over the next element.- Throws:
BERDecoder.DecodeException
-
drainElementValue
Drain the value bytes of the next element.- Throws:
BERDecoder.DecodeException
-