Class RSAPSSAlgorithmParameters
- java.lang.Object
-
- java.security.AlgorithmParametersSpi
-
- org.mozilla.jss.provider.java.security.RSAPSSAlgorithmParameters
-
public class RSAPSSAlgorithmParameters extends java.security.AlgorithmParametersSpiA RSAPSSAlgorithmParameter implements the trandcoding between a PSSAlgorithmSpec instance and the DER-encoded form. RSASSA-PSS-params ::= SEQUENCE { hashAlgorithm [0] OAEP-PSSDigestAlgorithms DEFAULT sha1, maskGenAlgorithm [1] PKCS1MGFAlgorithms DEFAULT mgf1SHA1, saltLength [2] INTEGER DEFAULT 20, trailerField [3] INTEGER DEFAULT 1 } where OAEP-PSSDigestAlgorithms ALGORITHM-IDENTIFIER ::= { { OID id-sha1 PARAMETERS NULL }| { OID id-sha224 PARAMETERS NULL }| { OID id-sha256 PARAMETERS NULL }| { OID id-sha384 PARAMETERS NULL }| { OID id-sha512 PARAMETERS NULL }, ... -- Allows for future expansion -- } PKCS1MGFAlgorithms ALGORITHM-IDENTIFIER ::= { { OID id-mgf1 PARAMETERS OAEP-PSSDigestAlgorithms }, ... -- Allows for future expansion -- }
-
-
Field Summary
Fields Modifier and Type Field Description static AlgorithmIddefaultHashAlgstatic AlgorithmIddefaultMaskGenFuncstatic BigIntdefaultSaltLenstatic BigIntdefaultTrailerField
-
Constructor Summary
Constructors Constructor Description RSAPSSAlgorithmParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]engineGetEncoded()protected byte[]engineGetEncoded(java.lang.String format)protected <T extends java.security.spec.AlgorithmParameterSpec>
TengineGetParameterSpec(java.lang.Class<T> paramSpec)protected voidengineInit(byte[] params)protected voidengineInit(byte[] params, java.lang.String format)protected voidengineInit(java.security.spec.AlgorithmParameterSpec paramSpec)protected java.lang.StringengineToString()
-
-
-
Field Detail
-
defaultHashAlg
public static final AlgorithmId defaultHashAlg
-
defaultMaskGenFunc
public static final AlgorithmId defaultMaskGenFunc
-
defaultSaltLen
public static final BigInt defaultSaltLen
-
defaultTrailerField
public static final BigInt defaultTrailerField
-
-
Method Detail
-
engineInit
protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec) throws java.security.spec.InvalidParameterSpecException- Specified by:
engineInitin classjava.security.AlgorithmParametersSpi- Throws:
java.security.spec.InvalidParameterSpecException
-
engineGetParameterSpec
protected <T extends java.security.spec.AlgorithmParameterSpec> T engineGetParameterSpec(java.lang.Class<T> paramSpec) throws java.security.spec.InvalidParameterSpecException- Specified by:
engineGetParameterSpecin classjava.security.AlgorithmParametersSpi- Throws:
java.security.spec.InvalidParameterSpecException
-
engineInit
protected void engineInit(byte[] params) throws java.io.IOException- Specified by:
engineInitin classjava.security.AlgorithmParametersSpi- Throws:
java.io.IOException
-
engineInit
protected void engineInit(byte[] params, java.lang.String format) throws java.io.IOException- Specified by:
engineInitin classjava.security.AlgorithmParametersSpi- Throws:
java.io.IOException
-
engineGetEncoded
protected byte[] engineGetEncoded() throws java.io.IOException- Specified by:
engineGetEncodedin classjava.security.AlgorithmParametersSpi- Throws:
java.io.IOException
-
engineGetEncoded
protected byte[] engineGetEncoded(java.lang.String format) throws java.io.IOException- Specified by:
engineGetEncodedin classjava.security.AlgorithmParametersSpi- Throws:
java.io.IOException
-
engineToString
protected java.lang.String engineToString()
- Specified by:
engineToStringin classjava.security.AlgorithmParametersSpi
-
-