| Package | Description |
|---|---|
| org.apache.sshd.common.config.keys.loader.pem | |
| org.apache.sshd.common.util.io.der |
| Modifier and Type | Method and Description |
|---|---|
static ECPrivateKeySpec |
ECDSAPEMResourceKeyPairParser.decodeECPrivateKeySpec(DERParser parser) |
static ECPoint |
ECDSAPEMResourceKeyPairParser.decodeECPublicKeyValue(ECCurves curve,
DERParser parser)
ASN.1 syntax according to rfc5915 is:
publicKey [1] BIT STRING OPTIONAL
|
static List<Integer> |
PKCS8PEMResourceKeyPairParser.getPKCS8AlgorithmIdentifier(DERParser parser)
According to the standard:
PrivateKeyInfo ::= SEQUENCE {
version Version,
privateKeyAlgorithm PrivateKeyAlgorithmIdentifier,
privateKey PrivateKey,
attributes [0] IMPLICIT Attributes OPTIONAL
}
Version ::= INTEGER
PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier
PrivateKey ::= OCTET STRING
Attributes ::= SET OF Attribute
AlgorithmIdentifier ::= SEQUENCE {
algorithm OBJECT IDENTIFIER,
parameters ANY DEFINED BY algorithm OPTIONAL
}
|
| Modifier and Type | Method and Description |
|---|---|
DERParser |
ASN1Object.createParser() |
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.