public final class ECPrivateKeyImpl extends PKCS8Key implements java.security.interfaces.ECPrivateKey
EXPLICIT TAGS
ECPrivateKey ::= SEQUENCE {
version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1),
privateKey OCTET STRING,
parameters [0] ECDomainParameters {{ SECGCurveNames }} OPTIONAL,
publicKey [1] BIT STRING OPTIONAL
}
We currently ignore the optional parameters and publicKey fields. We
require that the parameters are encoded as part of the AlgorithmIdentifier,
not in the private key structure.algid, encodedKey, key| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm()
Returns the algorithm to be used with this key.
|
byte[] |
getArrayS() |
java.security.spec.ECParameterSpec |
getParams() |
java.math.BigInteger |
getS() |
clear, equals, getAlgorithmId, getEncoded, getFormat, hashCode, parseKey, writeReplacepublic java.lang.String getAlgorithm()
PKCS8KeygetAlgorithm in interface java.security.KeygetAlgorithm in class PKCS8Keypublic java.math.BigInteger getS()
getS in interface java.security.interfaces.ECPrivateKeypublic byte[] getArrayS()
public java.security.spec.ECParameterSpec getParams()
getParams in interface java.security.interfaces.ECKey