public class SSL3KeyMaterialOutParameters extends java.lang.Object implements Parameters
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 |
---|
SSL3KeyMaterialOutParameters(byte[] clientIV,
byte[] serverIV)
Create a new SSL3KeyMaterialOutParameters object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Create a (deep) clone of this object.
|
boolean |
equals(java.lang.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.
|
java.lang.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(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.
|
java.lang.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 SSL3KeyMaterialOutParameters(byte[] clientIV, byte[] serverIV)
clientIV
- The buffer for the client initialization vector.serverIV
- The buffer for the server initialization vector.public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.Object getPKCS11ParamsObject()
getPKCS11ParamsObject
in interface Parameters
public void setPKCS11ParamsObject(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 java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
otherObject
- The other object to compare to.public int hashCode()
hashCode
in class java.lang.Object
IAIK JavaSecurity Website http://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. version 1.6.9