java.lang.Object | ||
↳ | java.security.Identity | |
↳ | java.security.IdentityScope |
This class is deprecated.
The functionality of this class has been replace by
Principal
, KeyStore
and the java.security.cert
package.
IdentityScope
represents a scope for Identity
objects.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of
IdentityScope with the specified
name. | |||||||||||
Constructs a new instance of
IdentityScope with the specified
name and the specified scope. |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of
IdentityScope . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds an
Identity to this IdentityScope . | |||||||||||
Returns the
Identity with the specified name or null if
no Identity with the specified name is present in this scope. | |||||||||||
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. | |||||||||||
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. | |||||||||||
Returns the system's scope.
| |||||||||||
Returns an
Enumeration over the Identity objects in this
IdentityScope . | |||||||||||
Removes an
Identity from this IdentityScope . | |||||||||||
Returns the number of
Identity objects 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 Identity to be added. |
---|
KeyManagementException | if the specified Identity is 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 Identity to 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 PublicKey of the Identity to 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 Principal whose name is used to lookup the Identity to 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 Identity to be removed. |
---|
KeyManagementException | if the Identity is 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. |
---|