Top Description Constructors Methods
org.bouncycastle.jcajce.util

public Class JcaJceUtils

extends Object
Class Inheritance
Imports
java.io.IOException, java.security.AlgorithmParameters, org.bouncycastle.asn1.ASN1Encodable, .ASN1ObjectIdentifier, .ASN1Primitive, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers

General JCA/JCE utility methods.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ASN1Encodable

Returns:

an ASN.1 object representing the primitives making up the params parameter.
extractParameters
(AlgorithmParameters
the object to get the encoding used to create the return value.
params
)

Deprecated use AlgorithmParametersUtils.extractParameters(AlgorithmParameters params)
Extract an ASN.1 encodable from an AlgorithmParameters object.
public static String

Returns:

a string representing the standard name - the OID as a string if none available.
getDigestAlgName
(ASN1ObjectIdentifier
the OID of the digest algorithm of interest.
digestAlgOID
)

Deprecated use MessageDigestUtils,getDigestName()
Attempt to find a standard JCA name for the digest represented by the past in OID.
public static void
loadParameters(AlgorithmParameters
the AlgorithmParameters object to be initialised.
params
,
ASN1Encodable
the ASN.1 encodable to initialise params with.
sParams
)

Deprecated use AlgorithmParametersUtils.loadParameters(AlgorithmParameters params, ASN1Encodable sParams)
Load an AlgorithmParameters object with the passed in ASN.1 encodable - if possible.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JcaJceUtilsback to summary
private JcaJceUtils()

Method Detail

extractParametersback to summary
public static ASN1Encodable extractParameters(AlgorithmParameters params) throws IOException

Deprecated

use AlgorithmParametersUtils.extractParameters(AlgorithmParameters params)

Extract an ASN.1 encodable from an AlgorithmParameters object.

Parameters
params:AlgorithmParameters

the object to get the encoding used to create the return value.

Returns:ASN1Encodable

an ASN.1 object representing the primitives making up the params parameter.

Exceptions
IOException:
if an encoding cannot be extracted.
getDigestAlgNameback to summary
public static String getDigestAlgName(ASN1ObjectIdentifier digestAlgOID)

Deprecated

use MessageDigestUtils,getDigestName()

Attempt to find a standard JCA name for the digest represented by the past in OID.

Parameters
digestAlgOID:ASN1ObjectIdentifier

the OID of the digest algorithm of interest.

Returns:String

a string representing the standard name - the OID as a string if none available.

loadParametersback to summary
public static void loadParameters(AlgorithmParameters params, ASN1Encodable sParams) throws IOException

Deprecated

use AlgorithmParametersUtils.loadParameters(AlgorithmParameters params, ASN1Encodable sParams)

Load an AlgorithmParameters object with the passed in ASN.1 encodable - if possible.

Parameters
params:AlgorithmParameters

the AlgorithmParameters object to be initialised.

sParams:ASN1Encodable

the ASN.1 encodable to initialise params with.

Exceptions
IOException:
if the parameters cannot be initialised.