public class

PBMParameter

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.cmp.PBMParameter

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
PBMParameter(byte[] salt, AlgorithmIdentifier owf, int iterationCount, AlgorithmIdentifier mac)
PBMParameter(ASN1OctetString salt, AlgorithmIdentifier owf, DERInteger iterationCount, AlgorithmIdentifier mac)
Public Methods
static PBMParameter getInstance(Object o)
DERInteger getIterationCount()
AlgorithmIdentifier getMac()
AlgorithmIdentifier getOwf()
ASN1OctetString getSalt()
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])
 
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public PBMParameter (byte[] salt, AlgorithmIdentifier owf, int iterationCount, AlgorithmIdentifier mac)

public PBMParameter (ASN1OctetString salt, AlgorithmIdentifier owf, DERInteger iterationCount, AlgorithmIdentifier mac)

Public Methods

public static PBMParameter getInstance (Object o)

public DERInteger getIterationCount ()

public AlgorithmIdentifier getMac ()

public AlgorithmIdentifier getOwf ()

public ASN1OctetString getSalt ()

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])
 

Returns
  • a basic ASN.1 object representation.