JavaTM Platform
Standard Ed. 6

类 java.security.Identity
的使用

使用 Identity 的软件包
java.security 为安全框架提供类和接口。 
 

java.security 中 Identity 的使用
 

java.security 中 Identity 的子类
 class IdentityScope
          已过时。 此类不再被使用。其功能已经由 java.security.KeyStore、java.security.cert 包和 java.security.Principal 取代。
 class Signer
          已过时。 将不再使用此类。其功能已由 java.security.KeyStore、java.security.cert 包和 java.security.Principal 所取代。
 

返回 Identity 的 java.security 中的方法
 Identity IdentityScope.getIdentity(Principal principal)
          已过时。 获取名称与指定的主体相同的身份。
abstract  Identity IdentityScope.getIdentity(PublicKey key)
          已过时。 获取具有指定公钥的身份。
abstract  Identity IdentityScope.getIdentity(String name)
          已过时。 返回此作用域内具有指定名称的身份(如果有的话)。
 

返回变量类型为 Identity 的类型的 java.security 中的方法
abstract  Enumeration<Identity> IdentityScope.identities()
          已过时。 返回此身份作用域内所有身份的枚举。
 

参数类型为 Identity 的 java.security 中的方法
abstract  void IdentityScope.addIdentity(Identity identity)
          已过时。 向此身份作用域添加一个身份。
protected  boolean Identity.identityEquals(Identity identity)
          已过时。 测试指定 Identity 与此 Identity 的相等性。
abstract  void IdentityScope.removeIdentity(Identity identity)
          已过时。 从此身份作用作用域移除一个身份。
 


JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。