public class AlgorithmParametersUtils extends Object
Modifier and Type | Method and Description |
---|---|
static org.bouncycastle.asn1.ASN1Encodable |
extractParameters(AlgorithmParameters params)
Extract an ASN.1 encodable from an AlgorithmParameters object.
|
static void |
loadParameters(AlgorithmParameters params,
org.bouncycastle.asn1.ASN1Encodable sParams)
Load an AlgorithmParameters object with the passed in ASN.1 encodable - if possible.
|
public static org.bouncycastle.asn1.ASN1Encodable extractParameters(AlgorithmParameters params) throws IOException
params
- the object to get the encoding used to create the return value.IOException
- if an encoding cannot be extracted.public static void loadParameters(AlgorithmParameters params, org.bouncycastle.asn1.ASN1Encodable sParams) throws IOException
params
- the AlgorithmParameters object to be initialised.sParams
- the ASN.1 encodable to initialise params with.IOException
- if the parameters cannot be initialised.Copyright © 2017 BouncyCastle.org. All rights reserved.