Package org.bouncycastle.jcajce.util
Class AlgorithmParametersUtils
java.lang.Object
org.bouncycastle.jcajce.util.AlgorithmParametersUtils
General JCA/JCE utility methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ASN1Encodable
extractParameters
(AlgorithmParameters params) Extract an ASN.1 encodable from an AlgorithmParameters object.static void
loadParameters
(AlgorithmParameters params, ASN1Encodable sParams) Load an AlgorithmParameters object with the passed in ASN.1 encodable - if possible.
-
Method Details
-
extractParameters
Extract an ASN.1 encodable from an AlgorithmParameters object.- Parameters:
params
- the object to get the encoding used to create the return value.- Returns:
- an ASN.1 object representing the primitives making up the params parameter.
- Throws:
IOException
- if an encoding cannot be extracted.
-
loadParameters
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
- the AlgorithmParameters object to be initialised.sParams
- the ASN.1 encodable to initialise params with.- Throws:
IOException
- if the parameters cannot be initialised.
-