APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.crypto.provider

pack-priv abstract Class HmacPKCS12PBECore

extends HmacCore
Class Inheritance
Known Direct Subclasses
com.sun.crypto.provider.HmacPKCS12PBECore.HmacPKCS12PBE_SHA1, com.sun.crypto.provider.HmacPKCS12PBECore.HmacPKCS12PBE_SHA224, com.sun.crypto.provider.HmacPKCS12PBECore.HmacPKCS12PBE_SHA256, com.sun.crypto.provider.HmacPKCS12PBECore.HmacPKCS12PBE_SHA384, com.sun.crypto.provider.HmacPKCS12PBECore.HmacPKCS12PBE_SHA512, com.sun.crypto.provider.HmacPKCS12PBECore.HmacPKCS12PBE_SHA512_224, com.sun.crypto.provider.HmacPKCS12PBECore.HmacPKCS12PBE_SHA512_256
Imports
javax.crypto.spec.SecretKeySpec, .PBEKeySpec, java.security.*, java.security.spec.*, java.util.Arrays, jdk.internal.access.SharedSecrets, sun.security.util.PBEUtil

This is an implementation of the HMAC algorithms as defined in PKCS#12 v1.1 standard (see RFC 7292 Appendix B.4).
Author
Valerie Peng

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
private final String
private final int

Constructor Summary

AccessConstructor and Description
public
HmacPKCS12PBECore(String algorithm, int bl)

Standard constructor, creates a new HmacSHA1 instance.

Method Summary

Modifier and TypeMethod and Description
protected void
engineInit(Key
the secret key.
key
,
AlgorithmParameterSpec
the algorithm parameters.
params
)

Overrides com.sun.crypto.provider.HmacCore.engineInit.

Initializes the HMAC with the given secret key and algorithm parameters.

Inherited from com.sun.crypto.provider.HmacCore:
cloneengineDoFinalengineGetMacLengthengineResetengineUpdateengineUpdateengineUpdate

Field Detail

algorithmback to summary
private final String algorithm
blback to summary
private final int bl

Constructor Detail

HmacPKCS12PBECoreback to summary
public HmacPKCS12PBECore(String algorithm, int bl) throws NoSuchAlgorithmException

Standard constructor, creates a new HmacSHA1 instance.

Method Detail

engineInitback to summary
protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException

Overrides com.sun.crypto.provider.HmacCore.engineInit.

Initializes the HMAC with the given secret key and algorithm parameters.

Parameters
key:Key

the secret key.

params:AlgorithmParameterSpec

the algorithm parameters.

Exceptions
InvalidKeyException:
if the given key is inappropriate for initializing this MAC.
InvalidAlgorithmParameterException:
if the given algorithm parameters are inappropriate for this MAC.
com.sun.crypto.provider back to summary

public final Class HmacPKCS12PBECore.HmacPKCS12PBE_SHA1

extends HmacPKCS12PBECore
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.crypto.provider.HmacPKCS12PBECore:
engineInit

Constructor Detail

HmacPKCS12PBE_SHA1back to summary
public HmacPKCS12PBE_SHA1() throws NoSuchAlgorithmException
com.sun.crypto.provider back to summary

public final Class HmacPKCS12PBECore.HmacPKCS12PBE_SHA224

extends HmacPKCS12PBECore
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.crypto.provider.HmacPKCS12PBECore:
engineInit

Constructor Detail

HmacPKCS12PBE_SHA224back to summary
public HmacPKCS12PBE_SHA224() throws NoSuchAlgorithmException
com.sun.crypto.provider back to summary

public final Class HmacPKCS12PBECore.HmacPKCS12PBE_SHA256

extends HmacPKCS12PBECore
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.crypto.provider.HmacPKCS12PBECore:
engineInit

Constructor Detail

HmacPKCS12PBE_SHA256back to summary
public HmacPKCS12PBE_SHA256() throws NoSuchAlgorithmException
com.sun.crypto.provider back to summary

public final Class HmacPKCS12PBECore.HmacPKCS12PBE_SHA384

extends HmacPKCS12PBECore
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.crypto.provider.HmacPKCS12PBECore:
engineInit

Constructor Detail

HmacPKCS12PBE_SHA384back to summary
public HmacPKCS12PBE_SHA384() throws NoSuchAlgorithmException
com.sun.crypto.provider back to summary

public final Class HmacPKCS12PBECore.HmacPKCS12PBE_SHA512

extends HmacPKCS12PBECore
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.crypto.provider.HmacPKCS12PBECore:
engineInit

Constructor Detail

HmacPKCS12PBE_SHA512back to summary
public HmacPKCS12PBE_SHA512() throws NoSuchAlgorithmException
com.sun.crypto.provider back to summary

public final Class HmacPKCS12PBECore.HmacPKCS12PBE_SHA512_224

extends HmacPKCS12PBECore
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.crypto.provider.HmacPKCS12PBECore:
engineInit

Constructor Detail

HmacPKCS12PBE_SHA512_224back to summary
public HmacPKCS12PBE_SHA512_224() throws NoSuchAlgorithmException
com.sun.crypto.provider back to summary

public final Class HmacPKCS12PBECore.HmacPKCS12PBE_SHA512_256

extends HmacPKCS12PBECore
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.crypto.provider.HmacPKCS12PBECore:
engineInit

Constructor Detail

HmacPKCS12PBE_SHA512_256back to summary
public HmacPKCS12PBE_SHA512_256() throws NoSuchAlgorithmException