WithoutPublicKey
class WithoutPublicKey(val privateKey: BigInteger, val publicKeyBytes: Asn1BitString?, val attributes: List<Asn1Element>? = null, curveOrderLengthInBytes: Int) : CryptoPrivateKey.EC(source)
Constructors
Link copied to clipboard
constructor(privateKey: BigInteger, publicKeyBytes: Asn1BitString?, attributes: List<Asn1Element>? = null, curveOrderLengthInBytes: Int)
Properties
Link copied to clipboard
Encodes this private key into a PKCS#8-encoded private key. This is the default.
Link copied to clipboard
Encodes this private key into a SEC1-encoded private key
Link copied to clipboard
optional attributes relevant when PKCS#8-encoding a private key
Link copied to clipboard
Encapsulation boundary string. Will be automatically fenced.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Encodes this PemEncodable into a PEM-encoded string
Link copied to clipboard
PKCS#8 encoding of a private key:
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun withCurve(curve: ECCurve, encodeCurve: Boolean = true, encodePublicKey: Boolean = (this.publicKeyBytes != null)): CryptoPrivateKey.EC.WithPublicKey
Creates a new CryptoPrivateKey.EC.WithPublicKey based on the passed curve.
Link copied to clipboard