|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.security.auth.x500.X500PrivateCredential
public final class X500PrivateCredential
此类表示一个 X500PrivateCredential。它将 X.509 证书、相应的私钥和用于引用 KeyStore 中的确切密钥对的 KeyStore 别名联系在一起。这允许在主体中查找 X.500 主体的私有证书。
| 构造方法摘要 | |
|---|---|
X500PrivateCredential(X509Certificate cert,
PrivateKey key)
创建将 X.509 证书、私钥和 KeyStore 别名联系在一起的 X500PrivateCredential。 |
|
X500PrivateCredential(X509Certificate cert,
PrivateKey key,
String alias)
创建将 X.509 证书、私钥和 KeyStore 别名联系在一起的 X500PrivateCredential。 |
|
| 方法摘要 | |
|---|---|
void |
destroy()
清除对此对象中的 X.509 证书、私钥和 KeyStore 别名的引用。 |
String |
getAlias()
返回 KeyStore 别名。 |
X509Certificate |
getCertificate()
返回 X.509 证书。 |
PrivateKey |
getPrivateKey()
返回 PrivateKey。 |
boolean |
isDestroyed()
确定是否已清除对此对象中的 X.509 证书、私钥和 KeyStore 别名的引用。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public X500PrivateCredential(X509Certificate cert,
PrivateKey key)
cert - X509Certificatekey - 证书的 PrivateKey
IllegalArgumentException - 如果 cert 或 key 为 null
public X500PrivateCredential(X509Certificate cert,
PrivateKey key,
String alias)
cert - X509Certificatekey - 证书的 PrivateKeyalias - KeyStore 别名
IllegalArgumentException - 如果 cert、key 或 alias 为 null| 方法详细信息 |
|---|
public X509Certificate getCertificate()
public PrivateKey getPrivateKey()
public String getAlias()
public void destroy()
Destroyable 中的 destroypublic boolean isDestroyed()
Destroyable 中的 isDestroyed
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。