1 7 8 9 package org.enhydra.oyster.cms; 10 11 import org.enhydra.oyster.exception.SMIMEException; 12 import org.enhydra.oyster.der.DERSequencePr; 13 import org.enhydra.oyster.der.DERObjectIdentifier; 14 import org.enhydra.oyster.der.DERNull; 15 16 17 29 public class AlgorithmIdentifier extends DERSequencePr { 30 31 44 public AlgorithmIdentifier (String id0, String typeConstruction0) throws SMIMEException 45 { 46 DERObjectIdentifier temp = new DERObjectIdentifier(id0, typeConstruction0); super.addContent(temp.getDEREncoded()); } 49 50 59 public AlgorithmIdentifier (int[] arrayID0) throws SMIMEException 60 { 61 DERObjectIdentifier temp = new DERObjectIdentifier(arrayID0); super.addContent(temp.getDEREncoded()); } 64 65 69 public void addNullToAlgorithmId () throws SMIMEException { 70 super.addContent(new DERNull().getDEREncoded()); 71 } 72 73 78 public void addParamToAlgorithmId (byte[] parameter0) throws SMIMEException { 79 super.addContent(parameter0); 80 } 81 } 82 83 84 85 | Popular Tags |