Top Fields Constructors Methods
org.bouncycastle.asn1.pkcs

public Class RSASSAPSSparams

extends ASN1Object
Class Inheritance
Imports
java.math.BigInteger, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERNull, .DERSequence, .DERTaggedObject, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier

Field Summary

Modifier and TypeField and Description
public static final AlgorithmIdentifier
public static final AlgorithmIdentifier
public static final ASN1Integer
public static final ASN1Integer
private AlgorithmIdentifier
private AlgorithmIdentifier
private ASN1Integer
private ASN1Integer

Constructor Summary

AccessConstructor and Description
public
RSASSAPSSparams()

The default version

public
RSASSAPSSparams(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, ASN1Integer saltLength, ASN1Integer trailerField)

private

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier
public static RSASSAPSSparams
public AlgorithmIdentifier
public BigInteger
public BigInteger
public ASN1Primitive

Returns:

the asn1 primitive representing the parameters.
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

RSASSA-PSS-params ::= SEQUENCE {
  hashAlgorithm      [0] OAEP-PSSDigestAlgorithms  DEFAULT sha1,
   maskGenAlgorithm   [1] PKCS1MGFAlgorithms  DEFAULT mgf1SHA1,
   saltLength         [2] INTEGER  DEFAULT 20,
   trailerField       [3] TrailerField  DEFAULT trailerFieldBC
 }

OAEP-PSSDigestAlgorithms    ALGORITHM-IDENTIFIER ::= {
   { OID id-sha1 PARAMETERS NULL   }|
   { OID id-sha256 PARAMETERS NULL }|
   { OID id-sha384 PARAMETERS NULL }|
   { OID id-sha512 PARAMETERS NULL },
   ...
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

DEFAULT_HASH_ALGORITHMback to summary
public static final AlgorithmIdentifier DEFAULT_HASH_ALGORITHM
DEFAULT_MASK_GEN_FUNCTIONback to summary
public static final AlgorithmIdentifier DEFAULT_MASK_GEN_FUNCTION
DEFAULT_SALT_LENGTHback to summary
public static final ASN1Integer DEFAULT_SALT_LENGTH
DEFAULT_TRAILER_FIELDback to summary
public static final ASN1Integer DEFAULT_TRAILER_FIELD
hashAlgorithmback to summary
private AlgorithmIdentifier hashAlgorithm
maskGenAlgorithmback to summary
private AlgorithmIdentifier maskGenAlgorithm
saltLengthback to summary
private ASN1Integer saltLength
trailerFieldback to summary
private ASN1Integer trailerField

Constructor Detail

RSASSAPSSparamsback to summary
public RSASSAPSSparams()

The default version

RSASSAPSSparamsback to summary
public RSASSAPSSparams(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, ASN1Integer saltLength, ASN1Integer trailerField)
RSASSAPSSparamsback to summary
private RSASSAPSSparams(ASN1Sequence seq)

Method Detail

getHashAlgorithmback to summary
public AlgorithmIdentifier getHashAlgorithm()
getInstanceback to summary
public static RSASSAPSSparams getInstance(Object obj)
getMaskGenAlgorithmback to summary
public AlgorithmIdentifier getMaskGenAlgorithm()
getSaltLengthback to summary
public BigInteger getSaltLength()
getTrailerFieldback to summary
public BigInteger getTrailerField()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

RSASSA-PSS-params ::= SEQUENCE {
  hashAlgorithm      [0] OAEP-PSSDigestAlgorithms  DEFAULT sha1,
   maskGenAlgorithm   [1] PKCS1MGFAlgorithms  DEFAULT mgf1SHA1,
   saltLength         [2] INTEGER  DEFAULT 20,
   trailerField       [3] TrailerField  DEFAULT trailerFieldBC
 }

OAEP-PSSDigestAlgorithms    ALGORITHM-IDENTIFIER ::= {
   { OID id-sha1 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 --
}

TrailerField ::= INTEGER { trailerFieldBC(1) }
Returns:ASN1Primitive

the asn1 primitive representing the parameters.