public class AlgorithmParametersSpi extends AlgorithmParametersSpi
| Constructor and Description |
|---|
AlgorithmParametersSpi() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
engineGetEncoded()
Return the PKCS#3 ASN.1 structure DHParameter.
|
protected byte[] |
engineGetEncoded(String format)
Returns the parameters in the specified encoding format.
|
protected AlgorithmParameterSpec |
engineGetParameterSpec(Class paramSpec)
Returns the
AlgorithmParameterSpec for this AlgorithmParametersSpi. |
protected void |
engineInit(AlgorithmParameterSpec paramSpec)
Initializes this
AlgorithmParametersSpi with the specified
AlgorithmParameterSpec. |
protected void |
engineInit(byte[] params)
Initializes this
AlgorithmParametersSpi with the specified
byte[] using the default decoding format for parameters. |
protected void |
engineInit(byte[] params,
String format)
Initializes this
AlgorithmParametersSpi with the specified
byte[] using the specified decoding format. |
protected String |
engineToString()
Returns a string containing a concise, human-readable description of this
AlgorithmParametersSpi. |
protected boolean |
isASN1FormatString(String format) |
protected AlgorithmParameterSpec |
localEngineGetParameterSpec(Class paramSpec) |
protected boolean isASN1FormatString(String format)
protected AlgorithmParameterSpec engineGetParameterSpec(Class paramSpec) throws InvalidParameterSpecException
AlgorithmParametersSpiAlgorithmParameterSpec for this AlgorithmParametersSpi.engineGetParameterSpec in class AlgorithmParametersSpiparamSpec - the type of the parameter specification in which this
parameters should be converted.AlgorithmParameterSpec for this AlgorithmParametersSpi.InvalidParameterSpecException - if this AlgorithmParametersSpi has already been
initialized, or if this parameters could not be converted to
the specified class.protected byte[] engineGetEncoded()
DHParameter ::= SEQUENCE {
prime INTEGER, -- p
base INTEGER, -- g
privateValueLength INTEGER OPTIONAL}
engineGetEncoded in class AlgorithmParametersSpiprotected byte[] engineGetEncoded(String format)
AlgorithmParametersSpiengineGetEncoded in class AlgorithmParametersSpiformat - the name of the encoding format.protected AlgorithmParameterSpec localEngineGetParameterSpec(Class paramSpec) throws InvalidParameterSpecException
InvalidParameterSpecExceptionprotected void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException
AlgorithmParametersSpiAlgorithmParametersSpi with the specified
AlgorithmParameterSpec.engineInit in class AlgorithmParametersSpiparamSpec - the parameter specification.InvalidParameterSpecException - if this AlgorithmParametersSpi has already been
initialized or the given paramSpec is not appropriate
for initializing this AlgorithmParametersSpi.protected void engineInit(byte[] params)
throws IOException
AlgorithmParametersSpiAlgorithmParametersSpi with the specified
byte[] using the default decoding format for parameters. The
default encoding format is ASN.1.engineInit in class AlgorithmParametersSpiparams - the encoded parameters.IOException - if this AlgorithmParametersSpi has already been
initialized, or the parameter could not be encoded.protected void engineInit(byte[] params,
String format)
throws IOException
AlgorithmParametersSpiAlgorithmParametersSpi with the specified
byte[] using the specified decoding format.engineInit in class AlgorithmParametersSpiparams - the encoded parameters.format - the name of the decoding format.IOException - if this AlgorithmParametersSpi has already been
initialized, or the parameter could not be encoded.protected String engineToString()
AlgorithmParametersSpiAlgorithmParametersSpi.engineToString in class AlgorithmParametersSpiAlgorithmParametersSpi.