java.lang.Object | ||
↳ | java.security.AlgorithmParametersSpi | |
↳ | com.sun.crypto.provider.RC2Parameters |
This class implements the parameter set used with RC2 encryption, which is defined in RFC2268 as follows:
RC2-CBCParameter ::= CHOICE { iv IV, params SEQUENCE { version RC2Version, iv IV } } where IV ::= OCTET STRING -- 8 octets RC2Version ::= INTEGER -- 1-1024
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the parameters in their primary encoding format.
| |||||||||||
Returns the parameters encoded in the specified format.
| |||||||||||
Returns a (transparent) specification of this parameters
object.
| |||||||||||
Imports the specified parameters and decodes them
according to the primary decoding format for parameters.
| |||||||||||
Imports the parameters from
params and
decodes them according to the specified decoding format. | |||||||||||
Initializes this parameters object using the parameters
specified in
paramSpec . | |||||||||||
Returns a formatted string describing the parameters.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
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.
IOException |
---|
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.
encodingMethod | the name of the encoding format. |
---|
IOException |
---|
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.
paramSpec | the the specification class in which the parameters should be returned. |
---|
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.
encoded | the encoded parameters. |
---|
IOException |
---|
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.
encoded | the encoded parameters. |
---|---|
decodingMethod | the name of the decoding format. |
IOException |
---|
Initializes this parameters object using the parameters
specified in paramSpec
.
paramSpec | the parameter specification. |
---|
Returns a formatted string describing the parameters.