|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.java.security.Identity | +--com.novell.java.security.IdentityScope | +--com.novell.service.security.XplatIdentityScope
Represents an authenticatable container in a Xplat system, such as a server. Every XplatIdentity is associated with a server identity scope which, in turn, is associated with the Xplat administrative domain scope. The server domain scope is a child of the administrative domain scope, and a user identity is a child of the server domain scope.
For example, to construct a user named Karah on a bindery
server called Jaeger you could do the following:
IdentityScope administrativeDomain = new XplatIdentityScope();
IdentityScope server = new XplatIdentityScope("Jaeger",administrativeDomain);
Identity user = new XplatIdentity("Karah",server);
XplatIdentity
,
Identity
,
IdentityScope
,
NdsIdentity
,
NdsIdentityScope
Field Summary | |
static java.lang.String |
ADMINISTRATIVE_DOMAIN_NAME
The administrative domain name. |
Constructor Summary | |
XplatIdentityScope()
Constructs the root-most identity scope with the ADMINISTRATIVE_DOMAIN_NAME name. |
|
XplatIdentityScope(IdentityScope identity)
Constructs an identity scope from another scope. |
|
XplatIdentityScope(java.lang.String name)
Constructs an identity scope with the specified name and no scope. |
|
XplatIdentityScope(java.lang.String name,
IdentityScope scope)
Constructs an identity scope with the specified name passed-in as a String and the scope passed-in as an IdentityScope. |
Method Summary | |
void |
addIdentity(Identity identity)
Adds an identity to this scope. |
Identity |
getIdentity(java.lang.String name)
Returns the identity in this scope identified by the passed-in string name. |
java.util.Enumeration |
identities()
Returns an enumeration of all identities in this identity scope. |
void |
removeIdentity(Identity identity)
Removes an identity from this identity scope. |
int |
size()
Returns the number of identities within this identity scope. |
Methods inherited from class com.novell.java.security.IdentityScope |
getIdentity,
getSystemScope,
toString |
Methods inherited from class com.novell.java.security.Identity |
addCertificate,
equals,
getCertificates,
getInfo,
getName,
getPublicKey,
getScope,
hashCode,
removeCertificate,
setInfo,
setPublicKey,
toString |
Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static java.lang.String ADMINISTRATIVE_DOMAIN_NAME
Constructor Detail |
public XplatIdentityScope()
public XplatIdentityScope(java.lang.String name)
name
- The name of the identity.public XplatIdentityScope(java.lang.String name, IdentityScope scope) throws KeyManagementException
name
- The name of the IdentityScope.scope
- The scope of the IdentityScope.public XplatIdentityScope(IdentityScope identity) throws KeyManagementException
scope
- The scope to copy.Method Detail |
public void addIdentity(Identity identity)
identity
- The identity to be added to this scope.public void removeIdentity(Identity identity)
identity
- The identity to remove from this scope.public Identity getIdentity(java.lang.String name)
name
- The name of the identity to be returned.public java.util.Enumeration identities()
public int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |