public abstract class EncodedKeySpec extends Object implements KeySpec
Key,
KeyFactory,
KeySpec,
X509EncodedKeySpec,
PKCS8EncodedKeySpec
| Constructor and Description |
|---|
EncodedKeySpec(byte[] encodedKey)
创建具有给定编码关键新encodedkeyspec。
|
public EncodedKeySpec(byte[] encodedKey)
encodedKey -编码的钥匙。数组的内容被复制以防止后续的修改。
NullPointerException -如果
encodedKey是空的。
public byte[] getEncoded()
public abstract String getFormat()
如果一个关键的不透明表示(见Key)可以转化(见KeyFactory)这个关键的规范(或它的子类),getFormat呼吁不透明的关键的关键规范的getFormat方法返回相同的值。
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.