Top Description Fields Constructors Methods
org.bouncycastle.operator

public Class DefaultSignatureNameFinder

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

Class for return signature names from OIDs or AlgorithmIdentifiers

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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

Returns:

a string representation of the name.
getAlgorithmName
(AlgorithmIdentifier
the AlgorithmIdentifier of interest.
algorithmIdentifier
)

Implements org.bouncycastle.operator.AlgorithmNameFinder.getAlgorithmName.

Return the signature name for the passed in algorithm identifier.
private static String
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

digestsback to summary
private static final Map<K, V> digests
oidsback to summary
private static final Map<K, V> oids

Constructor Detail

DefaultSignatureNameFinderback to summary
public DefaultSignatureNameFinder()

Method Detail

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.

Return the signature name for the passed in algorithm identifier. For signatures that require parameters, like RSASSA-PSS, this is the best one to use.

Parameters
algorithmIdentifier:AlgorithmIdentifier

the AlgorithmIdentifier of interest.

Returns:String

a string representation of the name.

getDigestNameback to summary
private static String getDigestName(ASN1ObjectIdentifier oid)
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.