Class PBMParameter

  • All Implemented Interfaces:
    org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

    public class PBMParameter
    extends org.bouncycastle.asn1.ASN1Object
    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])
    • Constructor Summary

      Constructors 
      Constructor Description
      PBMParameter​(byte[] salt, org.bouncycastle.asn1.x509.AlgorithmIdentifier owf, int iterationCount, org.bouncycastle.asn1.x509.AlgorithmIdentifier mac)  
      PBMParameter​(org.bouncycastle.asn1.ASN1OctetString salt, org.bouncycastle.asn1.x509.AlgorithmIdentifier owf, org.bouncycastle.asn1.ASN1Integer iterationCount, org.bouncycastle.asn1.x509.AlgorithmIdentifier mac)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static PBMParameter getInstance​(java.lang.Object o)  
      org.bouncycastle.asn1.ASN1Integer getIterationCount()  
      org.bouncycastle.asn1.x509.AlgorithmIdentifier getMac()  
      org.bouncycastle.asn1.x509.AlgorithmIdentifier getOwf()  
      org.bouncycastle.asn1.ASN1OctetString getSalt()  
      org.bouncycastle.asn1.ASN1Primitive 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])
      • Methods inherited from class org.bouncycastle.asn1.ASN1Object

        encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PBMParameter

        public PBMParameter​(byte[] salt,
                            org.bouncycastle.asn1.x509.AlgorithmIdentifier owf,
                            int iterationCount,
                            org.bouncycastle.asn1.x509.AlgorithmIdentifier mac)
      • PBMParameter

        public PBMParameter​(org.bouncycastle.asn1.ASN1OctetString salt,
                            org.bouncycastle.asn1.x509.AlgorithmIdentifier owf,
                            org.bouncycastle.asn1.ASN1Integer iterationCount,
                            org.bouncycastle.asn1.x509.AlgorithmIdentifier mac)
    • Method Detail

      • getInstance

        public static PBMParameter getInstance​(java.lang.Object o)
      • getSalt

        public org.bouncycastle.asn1.ASN1OctetString getSalt()
      • getOwf

        public org.bouncycastle.asn1.x509.AlgorithmIdentifier getOwf()
      • getIterationCount

        public org.bouncycastle.asn1.ASN1Integer getIterationCount()
      • getMac

        public org.bouncycastle.asn1.x509.AlgorithmIdentifier getMac()
      • toASN1Primitive

        public org.bouncycastle.asn1.ASN1Primitive 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])
         
        Specified by:
        toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
        Specified by:
        toASN1Primitive in class org.bouncycastle.asn1.ASN1Object
        Returns:
        a basic ASN.1 object representation.