org.bouncycastle.asn1.cmp

Class PBMParameter

Implemented Interfaces:
DEREncodable

public class PBMParameter
extends ASN1Encodable

Field Summary

Fields inherited from class org.bouncycastle.asn1.ASN1Encodable

BER, DER

Method Summary

static PBMParameter
getInstance(Object o)
DERInteger
getIterationCount()
AlgorithmIdentifier
getMac()
AlgorithmIdentifier
getOwf()
DERObject
toASN1Object()
  PBMParameter ::= SEQUENCE {
                        salt                OCTET STRING,
                        -- note:  implementations MAY wish to limit acceptable sizes
                        -- of this string to values appropriate for their environment
                        -- in order to reduce the risk of denial-of-service attacks
                        owf                 AlgorithmIdentifier,
                        -- AlgId for a One-Way Function (SHA-1 recommended)
                        iterationCount      INTEGER,
                        -- number of times the OWF is applied
                        -- note:  implementations MAY wish to limit acceptable sizes
                        -- of this integer to values appropriate for their environment
                        -- in order to reduce the risk of denial-of-service attacks
                        mac                 AlgorithmIdentifier
                        -- the MAC AlgId (e.g., DES-MAC, Triple-DES-MAC [PKCS11],
    }   -- or HMAC [RFC2104, RFC2202])
 

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode, toASN1Object

Method Details

getInstance

public static PBMParameter getInstance(Object o)

getIterationCount

public DERInteger getIterationCount()

getMac

public AlgorithmIdentifier getMac()

getOwf

public AlgorithmIdentifier getOwf()

toASN1Object

public DERObject toASN1Object()
  PBMParameter ::= SEQUENCE {
                        salt                OCTET STRING,
                        -- note:  implementations MAY wish to limit acceptable sizes
                        -- of this string to values appropriate for their environment
                        -- in order to reduce the risk of denial-of-service attacks
                        owf                 AlgorithmIdentifier,
                        -- AlgId for a One-Way Function (SHA-1 recommended)
                        iterationCount      INTEGER,
                        -- number of times the OWF is applied
                        -- note:  implementations MAY wish to limit acceptable sizes
                        -- of this integer to values appropriate for their environment
                        -- in order to reduce the risk of denial-of-service attacks
                        mac                 AlgorithmIdentifier
                        -- the MAC AlgId (e.g., DES-MAC, Triple-DES-MAC [PKCS11],
    }   -- or HMAC [RFC2104, RFC2202])
 
Overrides:
toASN1Object in interface ASN1Encodable
Returns:
a basic ASN.1 object representation.