Top Description Fields Constructors Methods
org.bouncycastle.asn1.cmp

public Class PBMParameter

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .DEROctetString, .DERSequence, org.bouncycastle.asn1.x509.AlgorithmIdentifier

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

Field Summary

Modifier and TypeField and Description
private final ASN1Integer
private final AlgorithmIdentifier
private final AlgorithmIdentifier
private final ASN1OctetString

Constructor Summary

AccessConstructor and Description
private
public
PBMParameter(byte[] salt, AlgorithmIdentifier owf, int iterationCount, AlgorithmIdentifier mac)

public

Method Summary

Modifier and TypeMethod and Description
public static PBMParameter
public ASN1Integer
public AlgorithmIdentifier
public AlgorithmIdentifier
public ASN1OctetString
public ASN1Primitive

Returns:

a basic ASN.1 object representation.
toASN1Primitive
()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

 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])
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

iterationCountback to summary
private final ASN1Integer iterationCount
macback to summary
private final AlgorithmIdentifier mac
owfback to summary
private final AlgorithmIdentifier owf
saltback to summary
private final ASN1OctetString salt

Constructor Detail

PBMParameterback to summary
private PBMParameter(ASN1Sequence seq)
PBMParameterback to summary
public PBMParameter(byte[] salt, AlgorithmIdentifier owf, int iterationCount, AlgorithmIdentifier mac)
PBMParameterback to summary
public PBMParameter(ASN1OctetString salt, AlgorithmIdentifier owf, ASN1Integer iterationCount, AlgorithmIdentifier mac)

Method Detail

getInstanceback to summary
public static PBMParameter getInstance(Object o)
getIterationCountback to summary
public ASN1Integer getIterationCount()
getMacback to summary
public AlgorithmIdentifier getMac()
getOwfback to summary
public AlgorithmIdentifier getOwf()
getSaltback to summary
public ASN1OctetString getSalt()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

 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:ASN1Primitive

a basic ASN.1 object representation.