1 7 8 9 package org.enhydra.oyster.cms; 10 11 import org.enhydra.oyster.exception.SMIMEException; 12 import org.enhydra.oyster.der.DERSetPr; 13 14 15 31 public class DigestAlgorithmIdentifiers extends DERSetPr { 32 33 37 public DigestAlgorithmIdentifiers () throws SMIMEException 38 { 39 } 40 41 55 public void addDigestAlgId (String id0, String typeConstruction0) throws SMIMEException { 56 AlgorithmIdentifier algID = new AlgorithmIdentifier(id0, typeConstruction0); super.addContent(algID.getDEREncoded()); } 59 60 74 public void addDigestAlgIdNullPar (String id0, String typeConstruction0) throws SMIMEException { 75 AlgorithmIdentifier algID = new AlgorithmIdentifier(id0, typeConstruction0); algID.addNullToAlgorithmId(); super.addContent(algID.getDEREncoded()); } 79 80 96 public void addDigestAlgId (String id0, String typeConstruction0, byte[] algParam0) throws SMIMEException { 97 AlgorithmIdentifier algID = new AlgorithmIdentifier(id0, typeConstruction0); algID.addParamToAlgorithmId(algParam0); super.addContent(algID.getDEREncoded()); } 101 102 112 public void addDigestAlgId (int[] arrayID0) throws SMIMEException { 113 AlgorithmIdentifier algID = new AlgorithmIdentifier(arrayID0); super.addContent(algID.getDEREncoded()); } 116 117 127 public void addDigestAlgIdNullPar (int[] arrayID0) throws SMIMEException { 128 AlgorithmIdentifier algID = new AlgorithmIdentifier(arrayID0); algID.addNullToAlgorithmId(); super.addContent(algID.getDEREncoded()); } 132 133 146 public void addDigestAlgId (int[] arrayID0, byte[] algParam0) throws SMIMEException { 147 AlgorithmIdentifier algID = new AlgorithmIdentifier(arrayID0); algID.addParamToAlgorithmId(algParam0); super.addContent(algID.getDEREncoded()); } 151 } 152 153 154 155 | Popular Tags |