java.lang.Object | |
↳ | java.security.AlgorithmParameters |
AlgorithmParameters
is an engine class which provides algorithm
parameters.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of
AlgorithmParameters with the given
arguments.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the name of the algorithm.
| |||||||||||
Returns this
AlgorithmParameters in the specified encoding
format.
| |||||||||||
Returns this
AlgorithmParameters in their default encoding
format.
| |||||||||||
Returns a new instance of
AlgorithmParameters from the specified
provider for the specified algorithm.
| |||||||||||
Returns a new instance of
AlgorithmParameters from the specified
provider for the specified algorithm.
| |||||||||||
Returns a new instance of
AlgorithmParameters for the specified
algorithm.
| |||||||||||
Returns the
AlgorithmParameterSpec for this AlgorithmParameters .
| |||||||||||
Returns the provider associated with this
AlgorithmParameters .
| |||||||||||
Initializes this
AlgorithmParameters with the specified AlgorithmParameterSpec .
| |||||||||||
Initializes this
AlgorithmParameters with the specified byte[] using the specified decoding format.
| |||||||||||
Initializes this
AlgorithmParameters with the specified byte[] using the default decoding format for parameters.
| |||||||||||
Returns a string containing a concise, human-readable description of this
AlgorithmParameters .
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a new instance of AlgorithmParameters
with the given
arguments.
Parameters | |
---|---|
algPramSpi |
AlgorithmParametersSpi :
the concrete implementation. |
provider |
Provider :
the security provider. |
algorithm |
String :
the name of the algorithm.
|
Returns the name of the algorithm.
Returns | |
---|---|
String |
the name of the algorithm. |
Returns this AlgorithmParameters
in the specified encoding
format.
Parameters | |
---|---|
format |
String :
the name of the encoding format. |
Returns | |
---|---|
byte[] |
the encoded parameters. |
Throws | |
---|---|
IOException |
if this AlgorithmParameters has already been
initialized, or if this parameters could not be encoded.
|
Returns this AlgorithmParameters
in their default encoding
format. The default encoding format is ASN.1.
Returns | |
---|---|
byte[] |
the encoded parameters. |
Throws | |
---|---|
IOException |
if this AlgorithmParameters has already been
initialized, or if this parameters could not be encoded.
|
Returns a new instance of AlgorithmParameters
from the specified
provider for the specified algorithm.
Parameters | |
---|---|
algorithm |
String :
the name of the algorithm to use. |
provider |
String :
name of the provider of the AlgorithmParameters . |
Returns | |
---|---|
AlgorithmParameters |
a new instance of AlgorithmParameters for the specified
algorithm. |
Throws | |
---|---|
NoSuchAlgorithmException |
if the specified algorithm is not available. |
NoSuchProviderException |
if the specified provider is not available. |
IllegalArgumentException |
if provider == null || provider.isEmpty() |
NullPointerException |
if algorithm is null .
|
Returns a new instance of AlgorithmParameters
from the specified
provider for the specified algorithm. The provider
supplied does
not have to be registered.
Parameters | |
---|---|
algorithm |
String :
the name of the algorithm to use. |
provider |
Provider :
the provider of the AlgorithmParameters . |
Returns | |
---|---|
AlgorithmParameters |
a new instance of AlgorithmParameters for the specified
algorithm. |
Throws | |
---|---|
NoSuchAlgorithmException |
if the specified algorithm is not available. |
NullPointerException |
if algorithm is null . |
IllegalArgumentException |
if provider == null
|
Returns a new instance of AlgorithmParameters
for the specified
algorithm.
Parameters | |
---|---|
algorithm |
String :
the name of the algorithm to use. |
Returns | |
---|---|
AlgorithmParameters |
a new instance of AlgorithmParameters for the specified
algorithm. |
Throws | |
---|---|
NoSuchAlgorithmException |
if the specified algorithm is not available. |
NullPointerException |
if algorithm is null .
|
Returns the AlgorithmParameterSpec
for this AlgorithmParameters
.
Parameters | |
---|---|
paramSpec |
Class :
the type of the parameter specification in which this
parameters should be converted. |
Returns | |
---|---|
T |
the AlgorithmParameterSpec for this AlgorithmParameters . |
Throws | |
---|---|
InvalidParameterSpecException |
if this AlgorithmParameters has already been
initialized, or if this parameters could not be converted to
the specified class.
|
Returns the provider associated with this AlgorithmParameters
.
Returns | |
---|---|
Provider |
the provider associated with this AlgorithmParameters .
|
Initializes this AlgorithmParameters
with the specified AlgorithmParameterSpec
.
Parameters | |
---|---|
paramSpec |
AlgorithmParameterSpec :
the parameter specification. |
Throws | |
---|---|
InvalidParameterSpecException |
if this AlgorithmParameters has already been
initialized or the given paramSpec is not appropriate
for initializing this AlgorithmParameters .
|
Initializes this AlgorithmParameters
with the specified byte[]
using the specified decoding format.
Parameters | |
---|---|
params |
byte :
the encoded parameters. |
format |
String :
the name of the decoding format. |
Throws | |
---|---|
IOException |
if this AlgorithmParameters has already been
initialized, or the parameter could not be encoded.
|
Initializes this AlgorithmParameters
with the specified byte[]
using the default decoding format for parameters. The default
encoding format is ASN.1.
Parameters | |
---|---|
params |
byte :
the encoded parameters. |
Throws | |
---|---|
IOException |
if this AlgorithmParameters has already been
initialized, or the parameter could not be encoded.
|
Returns a string containing a concise, human-readable description of this
AlgorithmParameters
.
Returns | |
---|---|
String |
a printable representation for this AlgorithmParameters .
|