public static final class FipsTripleDES.AuthParameters extends FipsParameters implements AuthenticationParametersWithIV
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getIV()
Return the initialization vector associated with this parameter set.
|
int |
getMACSizeInBits()
Return the size of the MAC these parameters are for.
|
FipsTripleDES.AuthParameters |
withIV(byte[] iv)
Create a new parameter set with a different IV.
|
FipsTripleDES.AuthParameters |
withIV(java.security.SecureRandom random)
Create a new parameter set with a different IV based on the output
of the passed in random.
|
FipsTripleDES.AuthParameters |
withIV(java.security.SecureRandom random,
int ivLen)
Return an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.
|
FipsTripleDES.AuthParameters |
withMACSize(int macSizeInBits)
Create a parameter set with the specified MAC size associated with it.
|
getAlgorithmclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgorithmpublic int getMACSizeInBits()
AuthenticationParametersgetMACSizeInBits in interface AuthenticationParameterspublic byte[] getIV()
ParametersWithIVgetIV in interface ParametersWithIVpublic FipsTripleDES.AuthParameters withIV(byte[] iv)
ParametersWithIVwithIV in interface ParametersWithIViv - the IV to use.public FipsTripleDES.AuthParameters withIV(java.security.SecureRandom random)
ParametersWithIVwithIV in interface ParametersWithIVrandom - the SecureRandom to use as the source of IV data.public FipsTripleDES.AuthParameters withIV(java.security.SecureRandom random, int ivLen)
AuthenticationParametersWithIVwithIV in interface AuthenticationParametersWithIVrandom - source of randomness for iv (nonce)ivLen - length of the iv (nonce) in bytes to use with the algorithm.public FipsTripleDES.AuthParameters withMACSize(int macSizeInBits)
AuthenticationParameterswithMACSize in interface AuthenticationParametersmacSizeInBits - bit length of the MAC length.