Top Fields Constructors Methods
org.bouncycastle.operator

public Class DefaultAlgorithmNameFinder

extends Object
implements AlgorithmNameFinder
Class Inheritance
All Implemented Interfaces
org.bouncycastle.operator.AlgorithmNameFinder
Imports
java.util.HashMap, .Map, .Set, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.bc.BCObjectIdentifiers, org.bouncycastle.asn1.bsi.BSIObjectIdentifiers, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, org.bouncycastle.asn1.eac.EACObjectIdentifiers, org.bouncycastle.asn1.gnu.GNUObjectIdentifiers, org.bouncycastle.asn1.kisa.KISAObjectIdentifiers, org.bouncycastle.asn1.misc.MiscObjectIdentifiers, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.ntt.NTTObjectIdentifiers, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.asn1.rosstandart.RosstandartObjectIdentifiers, org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.asn1.x9.X9ObjectIdentifiers

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
addAlgorithm(ASN1ObjectIdentifier algOid, String algorithmName)

public String
getAlgorithmName(ASN1ObjectIdentifier
the OID of interest.
objectIdentifier
)

Implements org.bouncycastle.operator.AlgorithmNameFinder.getAlgorithmName.

Return a string representation of the passed in objectIdentifier.

public String
getAlgorithmName(AlgorithmIdentifier
the AlgorithmIdentifier of interest.
algorithmIdentifier
)

Implements org.bouncycastle.operator.AlgorithmNameFinder.getAlgorithmName.

Return a string representation of the passed in AlgorithmIdentifier, based on the OID in the AlgorithmField, with the parameters included where appropriate.

public Set<ASN1ObjectIdentifier>
public boolean
hasAlgorithmName(ASN1ObjectIdentifier
the OID of interest.
objectIdentifier
)

Implements org.bouncycastle.operator.AlgorithmNameFinder.hasAlgorithmName.

Return true if the passed in objectIdentifier has a "human friendly" name associated with it.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmsback to summary
private static final Map<K, V> algorithms

Constructor Detail

DefaultAlgorithmNameFinderback to summary
public DefaultAlgorithmNameFinder()

Method Detail

addAlgorithmback to summary
private static void addAlgorithm(ASN1ObjectIdentifier algOid, String algorithmName)
getAlgorithmNameback to summary
public String getAlgorithmName(ASN1ObjectIdentifier objectIdentifier)

Implements org.bouncycastle.operator.AlgorithmNameFinder.getAlgorithmName.

Doc from org.bouncycastle.operator.AlgorithmNameFinder.getAlgorithmName.

Return a string representation of the passed in objectIdentifier.

Parameters
objectIdentifier:ASN1ObjectIdentifier

the OID of interest.

Returns:String

a "human friendly" representation of the OID, the OID as a string if none available.

getAlgorithmNameback to summary
public String getAlgorithmName(AlgorithmIdentifier algorithmIdentifier)

Implements org.bouncycastle.operator.AlgorithmNameFinder.getAlgorithmName.

Doc from org.bouncycastle.operator.AlgorithmNameFinder.getAlgorithmName.

Return a string representation of the passed in AlgorithmIdentifier, based on the OID in the AlgorithmField, with the parameters included where appropriate.

Parameters
algorithmIdentifier:AlgorithmIdentifier

the AlgorithmIdentifier of interest.

Returns:String

a "human friendly" representation of the algorithmIdentifier, the identifiers OID as a string if none available.

getOIDSetback to summary
public Set<ASN1ObjectIdentifier> getOIDSet()
hasAlgorithmNameback to summary
public boolean hasAlgorithmName(ASN1ObjectIdentifier objectIdentifier)

Implements org.bouncycastle.operator.AlgorithmNameFinder.hasAlgorithmName.

Doc from org.bouncycastle.operator.AlgorithmNameFinder.hasAlgorithmName.

Return true if the passed in objectIdentifier has a "human friendly" name associated with it.

Parameters
objectIdentifier:ASN1ObjectIdentifier

the OID of interest.

Returns:boolean

true if a name lookup exists for the OID, false otherwise.