Package com.yubico.internal.util
Interface BinaryUtil.ParseDerSequenceElementFunction<T>
- Enclosing class:
- BinaryUtil
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Function to parse an element of a DER SEQUENCE.
-
Method Summary
Modifier and TypeMethodDescriptionparse(@lombok.NonNull byte[] sequenceDer, int elementOffset) Parse an element of a DER SEQUENCE.
-
Method Details
-
parse
Parse an element of a DER SEQUENCE.- Parameters:
sequenceDer- The content octets of the parent SEQUENCE. This includes ALL elements in the sequence.elementOffset- The offset intosequenceDerfrom where to parse the element.- Returns:
- A
BinaryUtil.ParseDerResultwhoseBinaryUtil.ParseDerResult.resultis the parsed element andBinaryUtil.ParseDerResult.nextOffsetis the offset of the first octet past the end of the parsed element.
-