Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.security
Class IdentityScope  view IdentityScope download IdentityScope.java

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

Deprecated. Use java.security.KeyStore, the java.security.cert package, and java.security.Principal.

public abstract class IdentityScope
extends Identity

IdentityScope represents a scope of an identity. IdentityScope is also an Identity and can have a name and scope along with the other qualitites identities possess.

An IdentityScope contains other Identity objects. All Identity objects are manipulated in the scope the same way. The scope is supposed to apply different scope to different type of Identities.

No identity within the same scope can have the same public key.


Field Summary
private static long serialVersionUID
          Deprecated.  
private static IdentityScope systemScope
          Deprecated.  
 
Fields inherited from class java.security.Identity
 
Constructor Summary
protected IdentityScope()
          Deprecated. Constructor for serialization purposes.
  IdentityScope(java.lang.String name)
          Deprecated. Constructs a new instance of IdentityScope with the specified name and no scope.
  IdentityScope(java.lang.String name, IdentityScope scope)
          Deprecated. Constructs a new instance of IdentityScope with the specified name and IdentityScope.
 
Method Summary
abstract  void addIdentity(Identity identity)
          Deprecated. Adds an identity to his scope.
 Identity getIdentity(Principal principal)
          Deprecated. Returns the specified Identity, by Principal, within this scope.
abstract  Identity getIdentity(PublicKey key)
          Deprecated. Returns the specified Identity, by public key, within this scope.
abstract  Identity getIdentity(java.lang.String name)
          Deprecated. Returns the specified Identity, by name, within this scope.
static IdentityScope getSystemScope()
          Deprecated. Returns the system's Scope.
abstract  java.util.Enumeration identities()
          Deprecated. Returns an java.util.Enumeration of identities in this scope.
abstract  void removeIdentity(Identity identity)
          Deprecated. Removes an identity in this scope.
protected static void setSystemScope(IdentityScope scope)
          Deprecated. Sets the scope of the system.
abstract  int size()
          Deprecated. Returns the number of entries within this IdentityScope.
 java.lang.String toString()
          Deprecated. Returns a string representing this instance.
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Deprecated. 
See Also:
Constant Field Values

systemScope

private static IdentityScope systemScope
Deprecated. 
Constructor Detail

IdentityScope

protected IdentityScope()
Deprecated. 
Constructor for serialization purposes.


IdentityScope

public IdentityScope(java.lang.String name)
Deprecated. 
Constructs a new instance of IdentityScope with the specified name and no scope.


IdentityScope

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

Method Detail

getSystemScope

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


setSystemScope

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


size

public abstract int size()
Deprecated. 
Returns the number of entries within this IdentityScope.


getIdentity

public abstract Identity getIdentity(java.lang.String name)
Deprecated. 
Returns the specified Identity, by name, within this scope.


getIdentity

public Identity getIdentity(Principal principal)
Deprecated. 
Returns the specified Identity, by Principal, within this scope.


getIdentity

public abstract Identity getIdentity(PublicKey key)
Deprecated. 
Returns the specified Identity, by public key, within this scope.


addIdentity

public abstract void addIdentity(Identity identity)
                          throws KeyManagementException
Deprecated. 
Adds an identity to his scope.


removeIdentity

public abstract void removeIdentity(Identity identity)
                             throws KeyManagementException
Deprecated. 
Removes an identity in this scope.


identities

public abstract java.util.Enumeration identities()
Deprecated. 
Returns an java.util.Enumeration of identities in this scope.


toString

public java.lang.String toString()
Deprecated. 
Returns a string representing this instance. It includes the name, the scope name, and number of identities.

Specified by:
toString in interface Principal
Overrides:
toString in class Identity