CryptoPro JCP v 1.0.
Public API.

ru.CryptoPro.JCP.Key
Class KeyTwix

java.lang.Object
  extended byru.CryptoPro.JCP.Key.KeyTwix

public class KeyTwix
extends java.lang.Object

KeyPair Extension: privateKey + Certificate. Can`t be inherited from final java.security.KeyPair.

Author:
Copyright 2004-2009 Crypto-Pro. All rights reserved.
Version:1.0

Constructor Summary
KeyTwix(java.security.PrivateKey key, java.security.cert.X509Certificate cert)
          ctor.
KeyTwix(java.lang.String alias)
          load keyTwix from HDImageStore without password.
KeyTwix(java.lang.String alias, java.lang.String password)
          load keyTwix from HDImageStore.
KeyTwix(java.lang.String alias, java.lang.String password, java.io.InputStream in, java.lang.String keyStoreType)
          load keyTwix from keyStore.
 
Method Summary
 java.security.cert.X509Certificate getCert()
          X509Certificate
 java.security.PrivateKey getPrivate()
          private Key
 java.security.PublicKey getPublic()
          public Key
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyTwix

public KeyTwix(java.security.PrivateKey key,
               java.security.cert.X509Certificate cert)
ctor.

Parameters:
key - private Key
cert - X509Certificate

KeyTwix

public KeyTwix(java.lang.String alias,
               java.lang.String password,
               java.io.InputStream in,
               java.lang.String keyStoreType)
        throws java.lang.Exception
load keyTwix from keyStore.

Parameters:
alias - key Twix name
password - password
in - input stream
keyStoreType - key Store Type
Throws:
java.lang.Exception - cant read KeyTwix

KeyTwix

public KeyTwix(java.lang.String alias,
               java.lang.String password)
        throws java.lang.Exception
load keyTwix from HDImageStore.

Parameters:
alias - key Twix name
password - password
Throws:
java.lang.Exception - cant read KeyTwix

KeyTwix

public KeyTwix(java.lang.String alias)
        throws java.lang.Exception
load keyTwix from HDImageStore without password.

Parameters:
alias - key Twix name
Throws:
java.lang.Exception - cant read KeyTwix
Method Detail

getPrivate

public java.security.PrivateKey getPrivate()
private Key

Returns:
private Key

getPublic

public java.security.PublicKey getPublic()
public Key

Returns:
public Key

getCert

public java.security.cert.X509Certificate getCert()
X509Certificate

Returns:
X509Certificate

Copyright Crypto-Pro.
All rights reserved.