APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.pkcs12

pack-priv final Class PBMAC1Parameters

extends Object
Class Inheritance
Imports
java.io.IOException, java.security.NoSuchAlgorithmException, sun.security.util.*, sun.security.x509.AlgorithmId

This class implements the parameter set used with password-based mac scheme 1 (PBMAC1), which is defined in PKCS#5 as follows:
-- PBMAC1

PBMAC1Algorithms ALGORITHM-IDENTIFIER ::=
  { {PBMAC1-params IDENTIFIED BY id-PBMAC1}, ...}

id-PBMAC1 OBJECT IDENTIFIER ::= {pkcs-5 14}

PBMAC1-params ::= SEQUENCE {
  keyDerivationFunc AlgorithmIdentifier {{PBMAC1-KDFs}},
  messageAuthScheme AlgorithmIdentifier {{PBMAC1-MACs}} }

PBMAC1-KDFs ALGORITHM-IDENTIFIER ::=
  { {PBKDF2-params IDENTIFIED BY id-PBKDF2}, ... }

PBMAC1-MACs ALGORITHM-IDENTIFIER ::= { ... }

-- PBKDF2

See sun.security.util.PBKDF2Parameters.

Since
26

Field Summary

Modifier and TypeField and Description
private final String
private final PBKDF2Parameters
pack-priv static final ObjectIdentifier

Constructor Summary

AccessConstructor and Description
pack-priv
PBMAC1Parameters(byte[] encoded)

Method Summary

Modifier and TypeMethod and Description
pack-priv static byte[]
encode(byte[] salt, int iterationCount, int keyLength, String kdfHmac, String hmac)

pack-priv String
pack-priv PBKDF2Parameters
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hmacAlgoback to summary
private final String hmacAlgo
kdfParamsback to summary
private final PBKDF2Parameters kdfParams
pkcs5PBKDF2_OIDback to summary
pack-priv static final ObjectIdentifier pkcs5PBKDF2_OID

Constructor Detail

PBMAC1Parametersback to summary
pack-priv PBMAC1Parameters(byte[] encoded) throws IOException

Method Detail

encodeback to summary
pack-priv static byte[] encode(byte[] salt, int iterationCount, int keyLength, String kdfHmac, String hmac) throws NoSuchAlgorithmException
getHmacback to summary
pack-priv String getHmac()
getKdfParamsback to summary
pack-priv PBKDF2Parameters getKdfParams()