Package org.bouncycastle.crypto.general
Class SecureHash.AuthParameters
- java.lang.Object
-
- org.bouncycastle.crypto.general.GeneralParameters<GeneralAlgorithm>
-
- org.bouncycastle.crypto.general.SecureHash.AuthParameters
-
- All Implemented Interfaces:
AuthenticationParameters<SecureHash.AuthParameters>
,Parameters
- Enclosing class:
- SecureHash
public static final class SecureHash.AuthParameters extends GeneralParameters<GeneralAlgorithm> implements AuthenticationParameters<SecureHash.AuthParameters>
Parameters for HMAC modes.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMACSizeInBits()
Return the length of the MAC that will be made using these parameters in bits.SecureHash.AuthParameters
withMACSize(int macSizeInBits)
Return a new set of parameters specifying a specific mac size.-
Methods inherited from class org.bouncycastle.crypto.general.GeneralParameters
getAlgorithm
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bouncycastle.crypto.Parameters
getAlgorithm
-
-
-
-
Method Detail
-
getMACSizeInBits
public int getMACSizeInBits()
Return the length of the MAC that will be made using these parameters in bits.- Specified by:
getMACSizeInBits
in interfaceAuthenticationParameters<SecureHash.AuthParameters>
- Returns:
- the bit length of the MAC.
-
withMACSize
public SecureHash.AuthParameters withMACSize(int macSizeInBits)
Return a new set of parameters specifying a specific mac size.- Specified by:
withMACSize
in interfaceAuthenticationParameters<SecureHash.AuthParameters>
- Parameters:
macSizeInBits
- bit length of the MAC length.- Returns:
- a new set of AuthParameters for the MAC size.
-
-