com.digt.trusted.jce.provider
Class JDKGOST3410PrivateKey

java.lang.Object
  extended by com.digt.trusted.jce.provider.JDKGOST3410PrivateKey
All Implemented Interfaces:
GOST3410PrivateKey, java.io.Serializable, java.security.Key, java.security.PrivateKey

public class JDKGOST3410PrivateKey
extends java.lang.Object
implements GOST3410PrivateKey

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface java.security.PrivateKey
serialVersionUID
 
Constructor Summary
JDKGOST3410PrivateKey(byte[] EncodedObject)
           
JDKGOST3410PrivateKey(GOST3410PrivateKey key)
           
JDKGOST3410PrivateKey(GOST3410PrivateKeyParameters key)
           
JDKGOST3410PrivateKey(GOST3410PrivateKeySpec key)
           
JDKGOST3410PrivateKey(PrivateKeyInfo info)
           
 
Method Summary
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
          GOSTPrivateKeyBlob: magik(1 byte) + length_keyBlob(2 bytes) + keyBlob(length_keyBlob bytes) + length_pinBlob(2 bytes) + pinBlob(length_pinBlob bytes) + CRC(1 byte)
 java.lang.String getFormat()
          return the encoding format we produce in getEncoded().
 java.lang.String getPinCode()
           
 java.lang.String getX()
           
 boolean isNeedPinCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDKGOST3410PrivateKey

public JDKGOST3410PrivateKey(GOST3410PrivateKey key)

JDKGOST3410PrivateKey

public JDKGOST3410PrivateKey(GOST3410PrivateKeySpec key)

JDKGOST3410PrivateKey

public JDKGOST3410PrivateKey(GOST3410PrivateKeyParameters key)

JDKGOST3410PrivateKey

public JDKGOST3410PrivateKey(byte[] EncodedObject)

JDKGOST3410PrivateKey

public JDKGOST3410PrivateKey(PrivateKeyInfo info)
Method Detail

getPinCode

public java.lang.String getPinCode()
Specified by:
getPinCode in interface GOST3410PrivateKey

isNeedPinCode

public boolean isNeedPinCode()
Specified by:
isNeedPinCode in interface GOST3410PrivateKey

getAlgorithm

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

getFormat

public java.lang.String getFormat()
return the encoding format we produce in getEncoded().

Specified by:
getFormat in interface java.security.Key
Returns:
the string "GOST-BLOB"

getX

public java.lang.String getX()
Specified by:
getX in interface GOST3410PrivateKey

getEncoded

public byte[] getEncoded()
GOSTPrivateKeyBlob: magik(1 byte) + length_keyBlob(2 bytes) + keyBlob(length_keyBlob bytes) + length_pinBlob(2 bytes) + pinBlob(length_pinBlob bytes) + CRC(1 byte)

Specified by:
getEncoded in interface java.security.Key