public final class MasterSecret
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
MasterSecret()
Creates a new MasterSecret.
|
MasterSecret(byte[] secret) |
Modifier and Type | Method and Description |
---|---|
javax.crypto.spec.IvParameterSpec |
deriveIv(KeyType type)
Derives a IvParameterSpec of the specified type from the MasterSecret.
|
javax.crypto.SecretKey |
deriveKey(KeyType type)
Derives a SecretKey of the specified type from the MasterSecret.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
public MasterSecret()
public MasterSecret(byte[] secret)
public javax.crypto.SecretKey deriveKey(KeyType type)
type
- The type of key to derivepublic javax.crypto.spec.IvParameterSpec deriveIv(KeyType type)
type
- The type of iv to derivepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object