public interface PrivateKey extends Key, Destroyable
注意:专用私钥接口扩展了这个接口。 参见,例如, DSAPrivateKey接口在java.security.interfaces 。
实现应该重写默认destroy种isDestroyed从方法Destroyable接口,使敏感的关键信息被销毁,清除,或在这些信息是不可变的,未引用的情况。 最后,由于PrivateKey是Serializable ,实现也应该覆盖ObjectOutputStream.writeObject(java.lang.Object)以防止已被破坏的键被序列化。
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID
类指纹被设置为指示与以前版本的类的序列化兼容性。
|
getAlgorithm, getEncoded, getFormatdestroy, isDestroyedstatic final long serialVersionUID
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.