|
IAIK PKCS#11 Wrapper version 1.2.16 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiaik.pkcs.pkcs11.parameters.SSL3KeyMaterialOutParameters
Objects of this class encapsulates key material output for the mechanism Mechanism.SSL3_KEY_AND_MAC_DERIVE.
Field Summary | |
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 Summary | |
SSL3KeyMaterialOutParameters(byte[] clientIV,
byte[] serverIV)
Create a new SSL3KeyMaterialOutParameters object. |
Method Summary | |
Object |
clone()
Create a (deep) clone of this object. |
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(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. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected SecretKey clientMacSecret_
protected SecretKey serverMacSecret_
protected SecretKey clientKey_
protected SecretKey serverKey_
protected byte[] clientIV_
protected byte[] serverIV_
Constructor Detail |
public SSL3KeyMaterialOutParameters(byte[] clientIV, byte[] serverIV)
clientIV
- The buffer for the client initialization vector.serverIV
- The buffer for the server initialization vector.Method Detail |
public Object clone()
public 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 String toString()
public boolean equals(Object otherObject)
otherObject
- The other object to compare to.
public int hashCode()
|
IAIK PKCS#11 Wrapper version 1.2.16 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |