Top Description Constructors Methods
org.bouncycastle.jcajce.util

public Class AlgorithmParametersUtils

extends Object
Class Inheritance
Imports
java.io.IOException, java.security.AlgorithmParameters, org.bouncycastle.asn1.ASN1Encodable, .ASN1Primitive

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
)

Extract an ASN.1 encodable from an AlgorithmParameters object.

public static void
loadParameters(AlgorithmParameters
the AlgorithmParameters object to be initialised.
params
,
ASN1Encodable
the ASN.1 encodable to initialise params with.
sParams
)

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AlgorithmParametersUtilsback to summary
private AlgorithmParametersUtils()

Method Detail

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

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.
loadParametersback to summary
public static void loadParameters(AlgorithmParameters params, ASN1Encodable sParams) throws IOException

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.