Top Constructors Methods
org.bouncycastle.jcajce.provider

pack-priv abstract Class BaseAlgorithmParameters

extends AlgorithmParametersSpi
Class Inheritance
Known Direct Subclasses
org.bouncycastle.jcajce.provider.ProvGOST28147.AlgParams, org.bouncycastle.jcajce.provider.ProvIDEA.AlgParams, org.bouncycastle.jcajce.provider.ProvPBEPBKDF1.AlgParams, org.bouncycastle.jcajce.provider.ProvPBEPBKDF2.AlgParams, org.bouncycastle.jcajce.provider.ProvPKCS12.AlgParams, org.bouncycastle.jcajce.provider.ProvRC2.AlgParams, org.bouncycastle.jcajce.provider.X509AlgorithmParameters, org.bouncycastle.jcajce.provider.IvAlgorithmParameters, org.bouncycastle.jcajce.provider.ProvCAST5.AlgParams, org.bouncycastle.jcajce.provider.ASN1AlgorithmParameters
Imports
java.io.IOException, java.security.AlgorithmParametersSpi, java.security.spec.AlgorithmParameterSpec, .InvalidParameterSpecException

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected final byte[]
engineGetEncoded()

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters in their primary encoding format.
protected byte[]
engineGetEncoded(String
the name of the encoding format.
format
)

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters encoded in the specified format.
protected final <T extends AlgorithmParameterSpec> T
engineGetParameterSpec(Class<T>
the specification class in which the parameters should be returned.
paramSpec
)

Implements abstract java.security.AlgorithmParametersSpi.engineGetParameterSpec.

Returns a (transparent) specification of this parameters object.
protected final void
engineInit(byte[]
the encoded parameters.
encoding
)

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Imports the specified parameters and decodes them according to the primary decoding format for parameters.
protected void
engineInit(byte[]
the encoded parameters.
params
,
String
the name of the decoding format.
format
)

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Imports the parameters from params and decodes them according to the specified decoding format.
protected boolean
protected abstract AlgorithmParameterSpec
protected abstract byte[]
protected abstract void
localInit(byte[] encoded)

Inherited from java.security.AlgorithmParametersSpi:
engineInitengineToString

Constructor Detail

BaseAlgorithmParametersback to summary
pack-priv BaseAlgorithmParameters()

Method Detail

engineGetEncodedback to summary
protected final byte[] engineGetEncoded() throws IOException

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Doc from java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters in their primary encoding format. The primary encoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.

Returns:byte[]

the parameters encoded using their primary encoding format.

Exceptions
IOException:
on encoding errors.
engineGetEncodedback to summary
protected byte[] engineGetEncoded(String format) throws IOException

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Doc from java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters encoded in the specified format. If format is null, the primary encoding format for parameters is used. The primary encoding format is ASN.1, if an ASN.1 specification for these parameters exists.

Parameters
format:String

the name of the encoding format.

Returns:byte[]

the parameters encoded using the specified encoding scheme.

Exceptions
IOException:
on encoding errors.
engineGetParameterSpecback to summary
protected final <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException

Implements abstract java.security.AlgorithmParametersSpi.engineGetParameterSpec.

Doc from java.security.AlgorithmParametersSpi.engineGetParameterSpec.

Returns a (transparent) specification of this parameters object. paramSpec identifies the specification class in which the parameters should be returned. It could, for example, be DSAParameterSpec.class, to indicate that the parameters should be returned in an instance of the DSAParameterSpec class.

Parameters
<T>
the type of the parameter specification to be returned
paramSpec:Class<T>

the specification class in which the parameters should be returned.

Returns:T

the parameter specification.

Exceptions
InvalidParameterSpecException:
if the requested parameter specification is inappropriate for this parameter object.
engineInitback to summary
protected final void engineInit(byte[] encoding) throws IOException

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Doc from java.security.AlgorithmParametersSpi.engineInit.

Imports the specified parameters and decodes them according to the primary decoding format for parameters. The primary decoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.

Parameters
encoding:byte[]

the encoded parameters.

Exceptions
IOException:
on decoding errors
engineInitback to summary
protected void engineInit(byte[] params, String format) throws IOException

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Doc from java.security.AlgorithmParametersSpi.engineInit.

Imports the parameters from params and decodes them according to the specified decoding format. If format is null, the primary decoding format for parameters is used. The primary decoding format is ASN.1, if an ASN.1 specification for these parameters exists.

Parameters
params:byte[]

the encoded parameters.

format:String

the name of the decoding format.

Exceptions
IOException:
on decoding errors
isASN1FormatStringback to summary
protected boolean isASN1FormatString(String format)
localEngineGetParameterSpecback to summary
protected abstract AlgorithmParameterSpec localEngineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException
localGetEncodedback to summary
protected abstract byte[] localGetEncoded() throws IOException
localInitback to summary
protected abstract void localInit(byte[] encoded) throws IOException