1package org.bouncycastle.asn1; 2 3public class ASN1ObjectIdentifier 4 extends DERObjectIdentifier 5{ 6 public ASN1ObjectIdentifier(String identifier) 7 { 8 super(identifier); 9 } 10 11 ASN1ObjectIdentifier(byte[] bytes) 12 { 13 super(bytes); 14 } 15 16 /** 17 * Return an OID that creates a branch under the current one. 18 * 19 * @param branchID node numbers for the new branch. 20 * @return 21 */ 22 public ASN1ObjectIdentifier branch(String branchID) 23 { 24 return new ASN1ObjectIdentifier(getId() + "." + branchID); 25 } 26} 27