| java.lang.Object | ||
| ↳ | java.security.Identity | |
| ↳ | java.security.IdentityScope | |
      This class was deprecated
      in API level 1.
    Use Principal, KeyStore and the java.security.cert package
 instead.
  
IdentityScope represents a scope for Identity objects.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Constructs a new instance of  IdentityScopewith the specified
 name. | |||||||||||
| Constructs a new instance of  IdentityScopewith the specified
 name and the specified scope. | |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Constructs a new instance of  IdentityScope. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Adds an  Identityto thisIdentityScope. | |||||||||||
| Returns the  Identitywith the specified name ornullif
 noIdentitywith the specified name is present in this scope. | |||||||||||
| Returns the  Identitywhich is associated with the specified key
 ornullif noIdentityassociated with the specified key
 is present in this scope. | |||||||||||
| Returns the  Identitywith the name of the specified principal ornullif noIdentitywith the name of the specified
 principal is present in this scope. | |||||||||||
| Returns the system's scope. | |||||||||||
| Returns an  Enumerationover theIdentityobjects in thisIdentityScope. | |||||||||||
| Removes an  Identityfrom thisIdentityScope. | |||||||||||
| Returns the number of  Identityobjects in this scope. | |||||||||||
| Returns a string containing a concise, human-readable description of this
  IdentityScope. | |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Sets the system's scope. | |||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.security.Identity | |||||||||||
|  From class
  java.lang.Object | |||||||||||
|  From interface
  java.security.Principal | |||||||||||
Constructs a new instance of IdentityScope with the specified
 name.
| name | the name of this IdentityScope. | 
|---|
Constructs a new instance of IdentityScope with the specified
 name and the specified scope.
| name | the name of this IdentityScope. | 
|---|---|
| scope | the scope of this IdentityScope. | 
| KeyManagementException | if an identity with the same key already exists. | 
|---|
Adds an Identity to this IdentityScope.
| identity | the Identityto be added. | 
|---|
| KeyManagementException | if the specified Identityis invalid or an identity
             with the same key already exists. | 
|---|
Returns the Identity with the specified name or null if
 no Identity with the specified name is present in this scope.
| name | the name of the Identityto be returned. | 
|---|
Identity with the specified name or null if
         not present.
Returns the Identity which is associated with the specified key
 or null if no Identity associated with the specified key
 is present in this scope.
| key | the PublicKeyof theIdentityto be returned. | 
|---|
Identity associated with the specified key or null if not present.
Returns the Identity with the name of the specified principal or
 null if no Identity with the name of the specified
 principal is present in this scope.
| principal | the Principalwhose name is used to lookup theIdentityto be returned. | 
|---|
Identity with the specified name or null if
         not present.
Returns the system's scope.
Returns an Enumeration over the Identity objects in this
 IdentityScope.
Enumeration over the Identity objects in this
         IdentityScope.
Removes an Identity from this IdentityScope.
| identity | the Identityto be removed. | 
|---|
| KeyManagementException | if the Identityis not present in this scope. | 
|---|
Returns the number of Identity objects in this scope.
Identity objects in this scope.
Returns a string containing a concise, human-readable description of this
 IdentityScope.
IdentityScope.
Sets the system's scope.
| scope | the scope to set. | 
|---|