Package org.bouncycastle.asn1
Class ASN1ObjectIdentifier
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.ASN1Primitive
org.bouncycastle.asn1.DERObjectIdentifier
org.bouncycastle.asn1.ASN1ObjectIdentifier
- All Implemented Interfaces:
ASN1Encodable
public class ASN1ObjectIdentifier extends DERObjectIdentifier
-
Constructor Summary
Constructors Constructor Description ASN1ObjectIdentifier(String identifier) -
Method Summary
Modifier and Type Method Description ASN1ObjectIdentifierbranch(String branchID)Return an OID that creates a branch under the current one.booleanon(ASN1ObjectIdentifier stem)Return true if this oid is an extension of the passed in branch, stem.Methods inherited from class org.bouncycastle.asn1.DERObjectIdentifier
getBody, getId, getInstance, getInstance, hashCode, toStringMethods inherited from class org.bouncycastle.asn1.ASN1Primitive
equals, fromByteArray, toASN1PrimitiveMethods inherited from class org.bouncycastle.asn1.ASN1Object
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
-
Constructor Details
-
ASN1ObjectIdentifier
-
-
Method Details
-
branch
Return an OID that creates a branch under the current one.- Parameters:
branchID- node numbers for the new branch.- Returns:
- the OID for the new created branch.
-
on
Return true if this oid is an extension of the passed in branch, stem.- Parameters:
stem- the arc or branch that is a possible parent.- Returns:
- true if the branch is on the passed in stem, false otherwise.
-