Class JCEECPrivateKey
java.lang.Object
org.gudy.bouncycastle.jce.provider.JCEECPrivateKey
- All Implemented Interfaces:
Serializable
,Key
,PrivateKey
,Destroyable
,ECKey
,ECPrivateKey
,PKCS12BagAttributeCarrier
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private BigInteger
private ECParameterSpec
private Hashtable
private Vector
Fields inherited from interface java.security.PrivateKey
serialVersionUID
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
(package private)
JCEECPrivateKey
(String algorithm, ECPrivateKeyParameters params, ECParameterSpec spec) (package private)
JCEECPrivateKey
(String algorithm, ECPrivateKeySpec spec) (package private)
(package private)
-
Method Summary
Modifier and TypeMethodDescriptiongetD()
return the private value D.byte[]
Return a PKCS8 representation of the key.return the encoding format we produce in getEncoded().return a parameter specification representing the EC domain parameters for the key.void
setBagAttribute
(DERObjectIdentifier oid, DEREncodable attribute) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
Field Details
-
algorithm
-
d
-
ecSpec
-
pkcs12Attributes
-
pkcs12Ordering
-
-
Constructor Details
-
JCEECPrivateKey
protected JCEECPrivateKey() -
JCEECPrivateKey
JCEECPrivateKey(ECPrivateKey key) -
JCEECPrivateKey
JCEECPrivateKey(String algorithm, ECPrivateKeySpec spec) -
JCEECPrivateKey
JCEECPrivateKey(String algorithm, ECPrivateKeyParameters params, ECParameterSpec spec) -
JCEECPrivateKey
JCEECPrivateKey(PrivateKeyInfo info)
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithm
in interfaceKey
-
getFormat
return the encoding format we produce in getEncoded(). -
getEncoded
public byte[] getEncoded()Return a PKCS8 representation of the key. The sequence returned represents a full PrivateKeyInfo object.- Specified by:
getEncoded
in interfaceKey
- Returns:
- a PKCS8 representation of the key.
-
getParams
Description copied from interface:ECKey
return a parameter specification representing the EC domain parameters for the key. -
getD
Description copied from interface:ECPrivateKey
return the private value D.- Specified by:
getD
in interfaceECPrivateKey
-
setBagAttribute
- Specified by:
setBagAttribute
in interfacePKCS12BagAttributeCarrier
-
getBagAttribute
- Specified by:
getBagAttribute
in interfacePKCS12BagAttributeCarrier
-
getBagAttributeKeys
- Specified by:
getBagAttributeKeys
in interfacePKCS12BagAttributeCarrier
-