Top Description Methods
org.bouncycastle.operator

public Interface AlgorithmNameFinder

Known Direct Implementers
org.bouncycastle.operator.DefaultAlgorithmNameFinder, org.bouncycastle.operator.DefaultSignatureNameFinder
Imports
org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.x509.AlgorithmIdentifier

General finder for converting OIDs and AlgorithmIdentifiers into strings.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a "human friendly" representation of the OID, the OID as a string if none available.
getAlgorithmName
(ASN1ObjectIdentifier
the OID of interest.
objectIdentifier
)

Return a string representation of the passed in objectIdentifier.

public String

Returns:

a "human friendly" representation of the algorithmIdentifier, the identifiers OID as a string if none available.
getAlgorithmName
(AlgorithmIdentifier
the AlgorithmIdentifier of interest.
algorithmIdentifier
)

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

public boolean

Returns:

true if a name lookup exists for the OID, false otherwise.
hasAlgorithmName
(ASN1ObjectIdentifier
the OID of interest.
objectIdentifier
)

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

Method Detail

getAlgorithmNameback to summary
public String getAlgorithmName(ASN1ObjectIdentifier objectIdentifier)

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)

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.

hasAlgorithmNameback to summary
public boolean hasAlgorithmName(ASN1ObjectIdentifier objectIdentifier)

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.