Top Fields Constructors Methods
org.bouncycastle.jcajce.provider.asymmetric.ies

public Class AlgorithmParametersSpi

extends AlgorithmParametersSpi
Class Inheritance
Imports
java.io.IOException, java.math.BigInteger, java.security.spec.AlgorithmParameterSpec, .InvalidParameterSpecException, java.util.Enumeration, org.bouncycastle.asn1.ASN1Boolean, .ASN1EncodableVector, .ASN1Encoding, .ASN1Integer, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DEROctetString, .DERSequence, .DERTaggedObject, org.bouncycastle.jce.spec.IESParameterSpec

Field Summary

Modifier and TypeField and Description
pack-priv IESParameterSpec

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

in the absence of a standard way of doing it this will do for now...
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 AlgorithmParameterSpec
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 void
engineInit(AlgorithmParameterSpec
the parameter specification.
paramSpec
)

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Initializes this parameters object using the parameters specified in paramSpec.
protected void
engineInit(byte[]
the encoded parameters.
params
)

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 String
engineToString()

Implements abstract java.security.AlgorithmParametersSpi.engineToString.

Returns a formatted string describing the parameters.
protected boolean
protected AlgorithmParameterSpec

Field Detail

currentSpecback to summary
pack-priv IESParameterSpec currentSpec

Constructor Detail

AlgorithmParametersSpiback to summary
public AlgorithmParametersSpi()

Method Detail

engineGetEncodedback to summary
protected byte[] engineGetEncoded()

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

in the absence of a standard way of doing it this will do for now...

Returns:byte[]

Doc from java.security.AlgorithmParametersSpi.engineGetEncoded.

the parameters encoded using their primary encoding format.

engineGetEncodedback to summary
protected byte[] engineGetEncoded(String format)

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.

engineGetParameterSpecback to summary
protected AlgorithmParameterSpec 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
paramSpec:Class<T>

the specification class in which the parameters should be returned.

Returns:AlgorithmParameterSpec

the parameter specification.

Exceptions
InvalidParameterSpecException:
if the requested parameter specification is inappropriate for this parameter object.
engineInitback to summary
protected void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Doc from java.security.AlgorithmParametersSpi.engineInit.

Initializes this parameters object using the parameters specified in paramSpec.

Parameters
paramSpec:AlgorithmParameterSpec

the parameter specification.

Exceptions
InvalidParameterSpecException:
if the given parameter specification is inappropriate for the initialization of this parameter object.
engineInitback to summary
protected void engineInit(byte[] params) 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
params: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
engineToStringback to summary
protected String engineToString()

Implements abstract java.security.AlgorithmParametersSpi.engineToString.

Doc from java.security.AlgorithmParametersSpi.engineToString.

Returns a formatted string describing the parameters.

Returns:String

a formatted string describing the parameters.

isASN1FormatStringback to summary
protected boolean isASN1FormatString(String format)
localEngineGetParameterSpecback to summary
protected AlgorithmParameterSpec localEngineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException