Bouncy Castle Cryptography Library 1.47

org.bouncycastle.asn1
Class ASN1ObjectIdentifier

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Object
      extended by org.bouncycastle.asn1.ASN1Primitive
          extended by org.bouncycastle.asn1.DERObjectIdentifier
              extended by org.bouncycastle.asn1.ASN1ObjectIdentifier
All Implemented Interfaces:
ASN1Encodable
Direct Known Subclasses:
CertPolicyId, KeyPurposeId, PolicyQualifierId

public class ASN1ObjectIdentifier
extends DERObjectIdentifier


Constructor Summary
ASN1ObjectIdentifier(java.lang.String identifier)
           
 
Method Summary
 ASN1ObjectIdentifier branch(java.lang.String branchID)
          Return an OID that creates a branch under the current one.
 boolean on(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, toString
 
Methods inherited from class org.bouncycastle.asn1.ASN1Primitive
equals, fromByteArray, toASN1Primitive
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASN1ObjectIdentifier

public ASN1ObjectIdentifier(java.lang.String identifier)
Method Detail

branch

public ASN1ObjectIdentifier branch(java.lang.String branchID)
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

public boolean on(ASN1ObjectIdentifier stem)
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.

Bouncy Castle Cryptography Library 1.47