|
Build 1.1_r1 (from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.Identity
java.security.IdentityScope
Principal, KeyStore and the java.security.cert package.
@Deprecated public abstract class IdentityScope
IdentityScope represents a scope for Identity objects.
| Constructor Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.security.Identity |
|---|
addCertificate, certificates, equals, getInfo, getName, getPublicKey, getScope, hashCode, identityEquals, removeCertificate, setInfo, setPublicKey, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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.public String toString()
IdentityScope.
toString in interface PrincipaltoString in class IdentityIdentityScope.
|
Build 1.1_r1 (from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||