Class JCEECPrivateKey
java.lang.Object
org.gudy.bouncycastle.jce.provider.JCEECPrivateKey
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, Key, PrivateKey, Destroyable, ECKey, ECPrivateKey, PKCS12BagAttributeCarrier
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate BigIntegerprivate ECParameterSpecprivate Hashtableprivate VectorFields inherited from interface 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.voidsetBagAttribute(DERObjectIdentifier oid, DEREncodable attribute) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
getAlgorithmin interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()Return a PKCS8 representation of the key. The sequence returned represents a full PrivateKeyInfo object.- Specified by:
getEncodedin interfaceKey- Returns:
- a PKCS8 representation of the key.
-
getParams
Description copied from interface:ECKeyreturn a parameter specification representing the EC domain parameters for the key.- Specified by:
getParamsin interfaceAsymmetricKey- Specified by:
getParamsin interfaceECKey- Specified by:
getParamsin interfaceECPrivateKey
-
getD
Description copied from interface:ECPrivateKeyreturn the private value D.- Specified by:
getDin interfaceECPrivateKey
-
setBagAttribute
- Specified by:
setBagAttributein interfacePKCS12BagAttributeCarrier
-
getBagAttribute
- Specified by:
getBagAttributein interfacePKCS12BagAttributeCarrier
-
getBagAttributeKeys
- Specified by:
getBagAttributeKeysin interfacePKCS12BagAttributeCarrier
-