IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.keys
Class IAIKPKCS11Ssl3KeyContainer

java.lang.Object
  extended by iaik.pkcs.pkcs11.provider.keys.IAIKPKCS11Ssl3KeyContainer
All Implemented Interfaces:
java.io.Serializable, java.security.Key, javax.crypto.SecretKey

public class IAIKPKCS11Ssl3KeyContainer
extends java.lang.Object
implements javax.crypto.SecretKey

Holds IVs, mac secret handles, and secret handles for client and server.

See Also:
Serialized Form

Constructor Summary
IAIKPKCS11Ssl3KeyContainer(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.SecretKey clientMacSecret, iaik.pkcs.pkcs11.objects.SecretKey clientSecret, byte[] clientIV, iaik.pkcs.pkcs11.objects.SecretKey serverMacSecret, iaik.pkcs.pkcs11.objects.SecretKey serverSecret, byte[] serverIV)
          Instantiates a new SSL3 key container.
 
Method Summary
 java.lang.String getAlgorithm()
           
 byte[] getClientIv_()
          Gets the client iv_.
 IAIKPKCS11SecretKey getClientMacSecret_()
          Gets the client mac secret_.
 IAIKPKCS11SecretKey getClientSecret_()
          Gets the client secret_.
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 byte[] getServerIv_()
          Gets the server iv_.
 IAIKPKCS11SecretKey getServerMacSecret_()
          Gets the server mac secret_.
 IAIKPKCS11SecretKey getServerSecret_()
          Gets the server secret_.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IAIKPKCS11Ssl3KeyContainer

public IAIKPKCS11Ssl3KeyContainer(TokenManager tokenManager,
                                  iaik.pkcs.pkcs11.objects.SecretKey clientMacSecret,
                                  iaik.pkcs.pkcs11.objects.SecretKey clientSecret,
                                  byte[] clientIV,
                                  iaik.pkcs.pkcs11.objects.SecretKey serverMacSecret,
                                  iaik.pkcs.pkcs11.objects.SecretKey serverSecret,
                                  byte[] serverIV)
Instantiates a new SSL3 key container.

Parameters:
tokenManager - the token manager
clientMacSecret - the client mac secret
clientSecret - the client secret
clientIV - the client iv
serverMacSecret - the server mac secret
serverSecret - the server secret
serverIV - the server iv
Method Detail

getClientIv_

public byte[] getClientIv_()
Gets the client iv_.

Returns:
the client iv_

getClientMacSecret_

public IAIKPKCS11SecretKey getClientMacSecret_()
Gets the client mac secret_.

Returns:
the client mac secret_

getClientSecret_

public IAIKPKCS11SecretKey getClientSecret_()
Gets the client secret_.

Returns:
the client secret_

getServerIv_

public byte[] getServerIv_()
Gets the server iv_.

Returns:
the server iv_

getServerMacSecret_

public IAIKPKCS11SecretKey getServerMacSecret_()
Gets the server mac secret_.

Returns:
the server mac secret_

getServerSecret_

public IAIKPKCS11SecretKey getServerSecret_()
Gets the server secret_.

Returns:
the server secret_

getAlgorithm

public java.lang.String getAlgorithm()
Specified by:
getAlgorithm in interface java.security.Key

getFormat

public java.lang.String getFormat()
Specified by:
getFormat in interface java.security.Key

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in interface java.security.Key

IAIK PKCS#11 Provider API Documentation
version 1.6

IAIK JavaSecurity Website http://jce.iaik.tugraz.at/

IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2004, IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved.
version 1.6