Bouncy Castle Cryptography Library 1.46

org.bouncycastle.asn1.cmp
Class PBMParameter

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by org.bouncycastle.asn1.cmp.PBMParameter
All Implemented Interfaces:
DEREncodable

public class PBMParameter
extends ASN1Encodable


Field Summary
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
PBMParameter(ASN1OctetString salt, AlgorithmIdentifier owf, DERInteger iterationCount, AlgorithmIdentifier mac)
           
PBMParameter(byte[] salt, AlgorithmIdentifier owf, int iterationCount, AlgorithmIdentifier mac)
           
 
Method Summary
static PBMParameter getInstance(java.lang.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])
 
Methods inherited from class org.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBMParameter

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

PBMParameter

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

getInstance

public static PBMParameter getInstance(java.lang.Object o)

getSalt

public ASN1OctetString getSalt()

getOwf

public AlgorithmIdentifier getOwf()

getIterationCount

public DERInteger getIterationCount()

getMac

public AlgorithmIdentifier getMac()

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

Specified by:
toASN1Object in class ASN1Encodable
Returns:
a basic ASN.1 object representation.

Bouncy Castle Cryptography Library 1.46