com.digt.trusted.jce.provider
Class JDKGOST3410ELPrivateKey
java.lang.Object
com.digt.trusted.jce.provider.JDKGOST3410ELPrivateKey
- All Implemented Interfaces:
- GOST3410PrivateKey, java.io.Serializable, java.security.Key, java.security.PrivateKey
public class JDKGOST3410ELPrivateKey
- extends java.lang.Object
- implements GOST3410PrivateKey
- See Also:
- Serialized Form
Fields inherited from interface java.security.PrivateKey |
serialVersionUID |
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 |
JDKGOST3410ELPrivateKey
public JDKGOST3410ELPrivateKey(GOST3410PrivateKeySpec key)
JDKGOST3410ELPrivateKey
public JDKGOST3410ELPrivateKey(byte[] EncodedObject)
JDKGOST3410ELPrivateKey
public JDKGOST3410ELPrivateKey(PrivateKeyInfo info)
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