Top Fields Constructors Methods
org.bouncycastle.operator

public Class DefaultDigestAlgorithmIdentifierFinder

extends Object
implements DigestAlgorithmIdentifierFinder
Class Inheritance
All Implemented Interfaces
org.bouncycastle.operator.DigestAlgorithmIdentifierFinder
Imports
java.util.HashMap, .Map, org.bouncycastle.asn1.ASN1Integer, .ASN1ObjectIdentifier, .DERNull, org.bouncycastle.asn1.bc.BCObjectIdentifiers, org.bouncycastle.asn1.bsi.BSIObjectIdentifiers, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, org.bouncycastle.asn1.eac.EACObjectIdentifiers, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.RSASSAPSSparams, org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.asn1.x9.X9ObjectIdentifiers

Field Summary

Modifier and TypeField and Description
private static Map<K, V>
private static Map<K, V>
private static Map<K, V>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
addDigestAlgId(ASN1ObjectIdentifier oid, boolean withNullParams)

public AlgorithmIdentifier
find(AlgorithmIdentifier
the signature algorithm of interest.
sigAlgId
)

Implements org.bouncycastle.operator.DigestAlgorithmIdentifierFinder.find.

Find the digest algorithm identifier that matches with the passed in signature algorithm identifier.
public AlgorithmIdentifier
find(ASN1ObjectIdentifier
the name of the digest algorithm of interest.
digAlgOid
)

Implements org.bouncycastle.operator.DigestAlgorithmIdentifierFinder.find.

Find the algorithm identifier that matches with the passed in digest name.
public AlgorithmIdentifier
find(String
the name of the digest algorithm of interest.
digAlgName
)

Implements org.bouncycastle.operator.DigestAlgorithmIdentifierFinder.find.

Find the algorithm identifier that matches with the passed in digest name.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

digestNameToOidsback to summary
private static Map<K, V> digestNameToOids
digestOidsback to summary
private static Map<K, V> digestOids
digestOidToAlgIdsback to summary
private static Map<K, V> digestOidToAlgIds

Constructor Detail

DefaultDigestAlgorithmIdentifierFinderback to summary
public DefaultDigestAlgorithmIdentifierFinder()

Method Detail

addDigestAlgIdback to summary
private static void addDigestAlgId(ASN1ObjectIdentifier oid, boolean withNullParams)
findback to summary
public AlgorithmIdentifier find(AlgorithmIdentifier sigAlgId)

Implements org.bouncycastle.operator.DigestAlgorithmIdentifierFinder.find.

Doc from org.bouncycastle.operator.DigestAlgorithmIdentifierFinder.find.

Find the digest algorithm identifier that matches with the passed in signature algorithm identifier.

Parameters
sigAlgId:AlgorithmIdentifier

the signature algorithm of interest.

Returns:AlgorithmIdentifier

an algorithm identifier for the corresponding digest.

findback to summary
public AlgorithmIdentifier find(ASN1ObjectIdentifier digAlgOid)

Implements org.bouncycastle.operator.DigestAlgorithmIdentifierFinder.find.

Doc from org.bouncycastle.operator.DigestAlgorithmIdentifierFinder.find.

Find the algorithm identifier that matches with the passed in digest name.

Parameters
digAlgOid:ASN1ObjectIdentifier

the name of the digest algorithm of interest.

Returns:AlgorithmIdentifier

an algorithm identifier for the digest signature.

findback to summary
public AlgorithmIdentifier find(String digAlgName)

Implements org.bouncycastle.operator.DigestAlgorithmIdentifierFinder.find.

Doc from org.bouncycastle.operator.DigestAlgorithmIdentifierFinder.find.

Find the algorithm identifier that matches with the passed in digest name.

Parameters
digAlgName:String

the name of the digest algorithm of interest.

Returns:AlgorithmIdentifier

an algorithm identifier for the digest signature.