Build 1.1_r1 (from source)

java.security
Class IdentityScope

java.lang.Object
  extended by java.security.Identity
      extended by java.security.IdentityScope
All Implemented Interfaces:
Serializable, Principal

Deprecated. The functionality of this class has been replace by Principal, KeyStore and the java.security.cert package.

@Deprecated
public abstract class IdentityScope
extends Identity

IdentityScope represents a scope for Identity objects.

Since:
Android 1.0
See Also:
Serialized Form

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

IdentityScope

protected IdentityScope()
Deprecated. 
Constructs a new instance of IdentityScope.

Since:
Android 1.0

IdentityScope

public IdentityScope(String name)
Deprecated. 
Constructs a new instance of IdentityScope with the specified name.

Parameters:
name - the name of this IdentityScope.
Since:
Android 1.0

IdentityScope

public IdentityScope(String name,
                     IdentityScope scope)
              throws KeyManagementException
Deprecated. 
Constructs a new instance of IdentityScope with the specified name and the specified scope.

Parameters:
name - the name of this IdentityScope.
scope - the scope of this IdentityScope.
Throws:
KeyManagementException - if an identity with the same key already exists.
Since:
Android 1.0
Method Detail

getSystemScope

public static IdentityScope getSystemScope()
Deprecated. 
Returns the system's scope.

Returns:
the system's scope.
Since:
Android 1.0

setSystemScope

protected static void setSystemScope(IdentityScope scope)
Deprecated. 
Sets the system's scope.

Parameters:
scope - the scope to set.
Since:
Android 1.0

size

public abstract int size()
Deprecated. 
Returns the number of Identity objects in this scope.

Returns:
the number of Identity objects in this scope.
Since:
Android 1.0

getIdentity

public 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.

Parameters:
name - the name of the Identity to be returned.
Returns:
the Identity with the specified name or null if not present.
Since:
Android 1.0

getIdentity

public 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.

Parameters:
principal - the Principal whose name is used to lookup the Identity to be returned.
Returns:
the Identity with the specified name or null if not present.
Since:
Android 1.0

getIdentity

public 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.

Parameters:
key - the PublicKey of the Identity to be returned.
Returns:
the Identity associated with the specified key or null if not present.
Since:
Android 1.0

addIdentity

public abstract void addIdentity(Identity identity)
                          throws KeyManagementException
Deprecated. 
Adds an Identity to this IdentityScope.

Parameters:
identity - the Identity to be added.
Throws:
KeyManagementException - if the specified Identity is invalid or an identity with the same key already exists.
Since:
Android 1.0

removeIdentity

public abstract void removeIdentity(Identity identity)
                             throws KeyManagementException
Deprecated. 
Removes an Identity from this IdentityScope.

Parameters:
identity - the Identity to be removed.
Throws:
KeyManagementException - if the Identity is not present in this scope.
Since:
Android 1.0

identities

public abstract Enumeration<Identity> identities()
Deprecated. 
Returns an Enumeration over the Identity objects in this IdentityScope.

Returns:
an Enumeration over the Identity objects in this IdentityScope.
Since:
Android 1.0

toString

public String toString()
Deprecated. 
Returns a string containing a concise, human-readable description of this IdentityScope.

Specified by:
toString in interface Principal
Overrides:
toString in class Identity
Returns:
a printable representation for this IdentityScope.
Since:
Android 1.0

Build 1.1_r1 (from source)

Please submit a feedback, bug or feature