| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
clientIV
The initialization vector (IV) created for the client (if any).
|
protected SecretKey |
clientKey
The resulting Client Secret key.
|
protected SecretKey |
clientMacSecret
The resulting Client MAC Secret key.
|
protected byte[] |
serverIV
The initialization vector (IV) created for the server (if any).
|
protected SecretKey |
serverKey
The resulting Server Secret key.
|
protected SecretKey |
serverMacSecret
The resulting Server MAC Secret key.
|
| Constructor and Description |
|---|
SSL3KeyMaterialOutParams(byte[] clientIV,
byte[] serverIV)
Create a new SSL3KeyMaterialOutParameters object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object otherObject)
Compares all member variables of this object with the other object.
|
byte[] |
getClientIV()
Get the resulting client initialization vector.
|
SecretKey |
getClientMacSecret()
Get the resulting client MAC secret key.
|
SecretKey |
getClientSecret()
Get the resulting client secret key.
|
Object |
getPKCS11ParamsObject()
Get this parameters object as an object of the CK_SSL3_KEY_MAT_OUT
class.
|
byte[] |
getServerIV()
Get the resulting server initialization vector.
|
SecretKey |
getServerMacSecret()
Get the resulting server MAC secret key.
|
SecretKey |
getServerSecret()
Get the resulting server secret key.
|
int |
hashCode()
The overriding of this method should ensure that the objects of this
class work correctly in a hashtable.
|
void |
setPKCS11ParamsObject(sun.security.pkcs11.wrapper.CK_SSL3_KEY_MAT_OUT input,
Session session)
This method takes the key handles from the given input structure, which
will be the result after a call to DeriveKey, and creates the SecretKey
objects for this object.
|
String |
toString()
Returns the string representation of this object.
|
protected SecretKey clientMacSecret
protected SecretKey serverMacSecret
protected SecretKey clientKey
protected SecretKey serverKey
protected byte[] clientIV
protected byte[] serverIV
public SSL3KeyMaterialOutParams(byte[] clientIV,
byte[] serverIV)
clientIV - The buffer for the client initialization vector.serverIV - The buffer for the server initialization vector.public Object getPKCS11ParamsObject()
getPKCS11ParamsObject in interface Paramspublic void setPKCS11ParamsObject(sun.security.pkcs11.wrapper.CK_SSL3_KEY_MAT_OUT input,
Session session)
throws TokenException
input - The structure that holds the necessary key handles and IVs.session - The session to use for reading attributes. This session must
have the appropriate rights; i.e. it must be a user-session, if
it is a private object.TokenException - If reading the secret key object attributes fails.public SecretKey getClientMacSecret()
public SecretKey getServerMacSecret()
public SecretKey getClientSecret()
public SecretKey getServerSecret()
public byte[] getClientIV()
public byte[] getServerIV()
public String toString()
public boolean equals(Object otherObject)
Copyright © 2018. All rights reserved.