Package org.bouncycastle.crypto.fips
Class FipsSHS.AuthParameters
- java.lang.Object
-
- org.bouncycastle.crypto.fips.FipsParameters
-
- org.bouncycastle.crypto.fips.FipsSHS.AuthParameters
-
- All Implemented Interfaces:
AuthenticationParameters<FipsSHS.AuthParameters>
,Parameters
- Enclosing class:
- FipsSHS
public static final class FipsSHS.AuthParameters extends FipsParameters implements AuthenticationParameters<FipsSHS.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.FipsSHS.AuthParameters
withMACSize(int macSizeInBits)
Return a new set of parameters specifying a specific mac size.-
Methods inherited from class org.bouncycastle.crypto.fips.FipsParameters
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<FipsSHS.AuthParameters>
- Returns:
- the bit length of the MAC.
-
withMACSize
public FipsSHS.AuthParameters withMACSize(int macSizeInBits)
Return a new set of parameters specifying a specific mac size.- Specified by:
withMACSize
in interfaceAuthenticationParameters<FipsSHS.AuthParameters>
- Parameters:
macSizeInBits
- bit length of the MAC length.- Returns:
- a new set of AuthParameters for the MAC size.
-
-