类 PemPrivateKeyParser
java.lang.Object
cn.taketoday.core.ssl.pem.PemPrivateKeyParser
Parser for PKCS private key files in PEM format.
- 从以下版本开始:
- 4.0
- 作者:
- Scott Frederick, Phillip Webb, Moritz Halbritter, Harry Yang
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static final classAn ASN.1 DER encoded element.(专用程序包) static classSimple ASN.1 DER encoder.(专用程序包) static final classANS.1 encoded object identifier.private static classParser for a specific PEM format.(专用程序包) static classDecryptor for PKCS8 encoded private keys. -
字段概要
字段修饰符和类型字段说明private static final Map<PemPrivateKeyParser.EncodedOid,String> private static final Stringstatic final intprivate static final PemPrivateKeyParser.EncodedOidprivate static final PemPrivateKeyParser.EncodedOidprivate static final List<PemPrivateKeyParser.PemParser>private static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final PemPrivateKeyParser.EncodedOidprivate static final Stringprivate static final String -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static PKCS8EncodedKeySpeccreateKeySpecForAlgorithm(byte[] bytes, PemPrivateKeyParser.EncodedOid algorithm, PemPrivateKeyParser.EncodedOid parameters) private static PKCS8EncodedKeySpeccreateKeySpecForPkcs1Rsa(byte[] bytes, String password) private static PKCS8EncodedKeySpeccreateKeySpecForPkcs8(byte[] bytes, String password) private static PKCS8EncodedKeySpeccreateKeySpecForPkcs8Encrypted(byte[] bytes, String password) private static PKCS8EncodedKeySpeccreateKeySpecForSec1Ec(byte[] bytes, String password) private static PemPrivateKeyParser.EncodedOidgetEcParameters(PemPrivateKeyParser.DerElement parameters) (专用程序包) static PrivateKeyParse a private key from the specified string.(专用程序包) static PrivateKeyParse a private key from the specified string, using the provided password for decryption if necessary.
-
字段详细资料
-
PKCS1_RSA_HEADER
- 另请参阅:
-
PKCS1_RSA_FOOTER
- 另请参阅:
-
PKCS8_HEADER
- 另请参阅:
-
PKCS8_FOOTER
- 另请参阅:
-
PKCS8_ENCRYPTED_HEADER
- 另请参阅:
-
PKCS8_ENCRYPTED_FOOTER
- 另请参阅:
-
SEC1_EC_HEADER
- 另请参阅:
-
SEC1_EC_FOOTER
- 另请参阅:
-
BASE64_TEXT
- 另请参阅:
-
BASE64_TEXT_GROUP
public static final int BASE64_TEXT_GROUP- 另请参阅:
-
RSA_ALGORITHM
-
ELLIPTIC_CURVE_ALGORITHM
-
ELLIPTIC_CURVE_384_BIT
-
ALGORITHMS
-
PEM_PARSERS
-
-
构造器详细资料
-
PemPrivateKeyParser
private PemPrivateKeyParser()
-
-
方法详细资料
-
createKeySpecForPkcs1Rsa
-
createKeySpecForSec1Ec
-
getEcParameters
private static PemPrivateKeyParser.EncodedOid getEcParameters(@Nullable PemPrivateKeyParser.DerElement parameters) -
createKeySpecForAlgorithm
private static PKCS8EncodedKeySpec createKeySpecForAlgorithm(byte[] bytes, PemPrivateKeyParser.EncodedOid algorithm, @Nullable PemPrivateKeyParser.EncodedOid parameters) -
createKeySpecForPkcs8
-
createKeySpecForPkcs8Encrypted
-
parse
Parse a private key from the specified string.- 参数:
text- the text to parse- 返回:
- the parsed private key
-
parse
Parse a private key from the specified string, using the provided password for decryption if necessary.- 参数:
text- the text to parsepassword- the password used to decrypt an encrypted private key- 返回:
- the parsed private key
-