@Deprecated public abstract class IdentityScope extends Identity
IdentityScope
represents a scope for Identity
objects.Modifier | Constructor and Description |
---|---|
protected |
IdentityScope()
Deprecated.
Constructs a new instance of
IdentityScope . |
|
IdentityScope(String name)
Deprecated.
Constructs a new instance of
IdentityScope with the specified
name. |
|
IdentityScope(String name,
IdentityScope scope)
Deprecated.
Constructs a new instance of
IdentityScope with the specified
name and the specified scope. |
Modifier and Type | Method and Description |
---|---|
abstract void |
addIdentity(Identity identity)
Deprecated.
Adds an
Identity to this IdentityScope . |
Identity |
getIdentity(Principal principal)
Deprecated.
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. |
abstract Identity |
getIdentity(PublicKey key)
Deprecated.
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. |
abstract Identity |
getIdentity(String name)
Deprecated.
Returns the
Identity with the specified name or null if
no Identity with the specified name is present in this scope. |
static IdentityScope |
getSystemScope()
Deprecated.
Returns the system's scope.
|
abstract Enumeration<Identity> |
identities()
Deprecated.
Returns an
Enumeration over the Identity objects in this
IdentityScope . |
abstract void |
removeIdentity(Identity identity)
Deprecated.
Removes an
Identity from this IdentityScope . |
protected static void |
setSystemScope(IdentityScope scope)
Deprecated.
Sets the system's scope.
|
abstract int |
size()
Deprecated.
Returns the number of
Identity objects in this scope. |
String |
toString()
Deprecated.
Returns a string containing a concise, human-readable description of this
IdentityScope . |
addCertificate, certificates, equals, getInfo, getName, getPublicKey, getScope, hashCode, identityEquals, removeCertificate, setInfo, setPublicKey, toString
protected IdentityScope()
IdentityScope
.public IdentityScope(String name)
IdentityScope
with the specified
name.name
- the name of this IdentityScope
.public IdentityScope(String name, IdentityScope scope) throws KeyManagementException
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.public static IdentityScope getSystemScope()
protected static void setSystemScope(IdentityScope scope)
scope
- the scope to set.public abstract int size()
Identity
objects in this scope.Identity
objects in this scope.public abstract Identity getIdentity(String name)
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.public Identity getIdentity(Principal principal)
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.public abstract Identity getIdentity(PublicKey key)
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.public abstract void addIdentity(Identity identity) throws KeyManagementException
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.public abstract void removeIdentity(Identity identity) throws KeyManagementException
Identity
from this IdentityScope
.identity
- the Identity
to be removed.KeyManagementException
- if the Identity
is not present in this scope.public abstract Enumeration<Identity> identities()
Enumeration
over the Identity
objects in this
IdentityScope
.Enumeration
over the Identity
objects in this
IdentityScope
.