Bouncy Castle Cryptography Library 1.79

org.bouncycastle.operator
Class DefaultSignatureNameFinder

java.lang.Object
  |
  +--org.bouncycastle.operator.DefaultSignatureNameFinder
All Implemented Interfaces:
AlgorithmNameFinder

public class DefaultSignatureNameFinder
extends java.lang.Object
implements AlgorithmNameFinder

Class for return signature names from OIDs or AlgorithmIdentifiers


Constructor Summary
DefaultSignatureNameFinder()
           
 
Method Summary
 java.lang.String getAlgorithmName(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier)
          Return the signature name for the passed in algorithm identifier.
 java.lang.String getAlgorithmName(org.bouncycastle.asn1.ASN1ObjectIdentifier objectIdentifier)
          Return a string representation of the passed in objectIdentifier.
 boolean hasAlgorithmName(org.bouncycastle.asn1.ASN1ObjectIdentifier objectIdentifier)
          Return true if the passed in objectIdentifier has a "human friendly" name associated with it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSignatureNameFinder

public DefaultSignatureNameFinder()
Method Detail

hasAlgorithmName

public boolean hasAlgorithmName(org.bouncycastle.asn1.ASN1ObjectIdentifier objectIdentifier)
Description copied from interface: AlgorithmNameFinder
Return true if the passed in objectIdentifier has a "human friendly" name associated with it.
Specified by:
hasAlgorithmName in interface AlgorithmNameFinder
Following copied from interface: org.bouncycastle.operator.AlgorithmNameFinder
Parameters:
objectIdentifier - the OID of interest.
Returns:
true if a name lookup exists for the OID, false otherwise.

getAlgorithmName

public java.lang.String getAlgorithmName(org.bouncycastle.asn1.ASN1ObjectIdentifier objectIdentifier)
Description copied from interface: AlgorithmNameFinder
Return a string representation of the passed in objectIdentifier.
Specified by:
getAlgorithmName in interface AlgorithmNameFinder
Following copied from interface: org.bouncycastle.operator.AlgorithmNameFinder
Parameters:
objectIdentifier - the OID of interest.
Returns:
a "human friendly" representation of the OID, the OID as a string if none available.

getAlgorithmName

public java.lang.String getAlgorithmName(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier)
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.
Specified by:
getAlgorithmName in interface AlgorithmNameFinder
Parameters:
algorithmIdentifier - the AlgorithmIdentifier of interest.
Returns:
a string representation of the name.

Bouncy Castle Cryptography Library 1.79