public class X509EncodedKeySpec extends EncodedKeySpec
SubjectPublicKeyInfo
进行编码。
SubjectPublicKeyInfo
语法在X.509标准中定义如下:
SubjectPublicKeyInfo ::= SEQUENCE {
algorithm AlgorithmIdentifier,
subjectPublicKey BIT STRING }
Key
, KeyFactory
, KeySpec
, EncodedKeySpec
, PKCS8EncodedKeySpec
Constructor and Description |
---|
X509EncodedKeySpec(byte[] encodedKey)
用给定的编码密钥创建一个新的X509EncodedKeySpec。
|
public X509EncodedKeySpec(byte[] encodedKey)
encodedKey
- 假定按照X.509标准编码的密钥。
复制数组的内容以防止后续修改。
NullPointerException
- 如果
encodedKey
为空。
public byte[] getEncoded()
getEncoded
在
EncodedKeySpec
public final String getFormat()
getFormat
在
EncodedKeySpec
"X.509"
。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.