|
|||||||||
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.service.security.XplatIdentity | +--com.novell.service.security.NdsIdentity | +--com.novell.service.security.NdsPasswordIdentity
This class represents an NDS identity with a password.
BinderyPasswordIdentity
,
NdsIdentityScope
,
PasswordIdentityFactory
Constructor Summary | |
NdsPasswordIdentity(Identity identity)
Constructs a password identity based on an existing identity. |
|
NdsPasswordIdentity(java.lang.String name)
Construct an identity with the specified user name and no scope. |
|
NdsPasswordIdentity(java.lang.String name,
IdentityScope scope)
Construct an identity with the specified user name as a String and scope as an IdentityScope. |
|
NdsPasswordIdentity(java.lang.String name,
java.lang.String scope)
Construct an identity with the specified user name and scope as Strings. |
Method Summary | |
Password |
getNewPassword()
Return the new password for this identity. |
Password |
getPassword()
Return the password for this identity. |
void |
setNewPassword(Password newPassword)
Set the new password for this identity. |
void |
setPassword(Password password)
Set the password for this identity. |
Methods inherited from class com.novell.service.security.NdsIdentity |
getAdministrativeDomain,
getPasswordIdentityInstance,
getUserDomain,
getUsername |
Methods inherited from class com.novell.service.security.XplatIdentity |
getSession,
getSessionManager,
setSession,
setSessionManager |
Methods inherited from class com.novell.java.security.Identity |
addCertificate,
equals,
getCertificates,
getInfo,
getName,
getPublicKey,
getScope,
hashCode,
removeCertificate,
setInfo,
setPublicKey,
toString,
toString |
Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public NdsPasswordIdentity(java.lang.String name)
name
- The user name of the identity.public NdsPasswordIdentity(java.lang.String name, java.lang.String scope) throws KeyManagementException
name
- The user name of the identity.scope
- The scope of the identity (the domain).public NdsPasswordIdentity(java.lang.String name, IdentityScope scope) throws KeyManagementException
name
- The user name of the identity.scope
- The scope of the identity (the domain).public NdsPasswordIdentity(Identity identity) throws KeyManagementException
The name and parent scope are copied from the existing identity. If the identity is an XplatIdentity, the session manager is also copied.
Note: If the identity is an NDS identity, its context handle is copied, and if the identity is a password identity, its passwords are also copied.
identity
- The identity from which to build the copy.Method Detail |
public void setPassword(Password password)
The password case is preserved. Consequently, it is up to the caller to uppercase the password if needed. This set request should not be confused with the createTokens request which alters a user object's password. This request only sets the memory variable for this identity so that when the login request is made, the identity will already have the password and will not need to prompt the user for one.
password
- The password for this identity.getPassword()
,
setNewPassword(com.novell.service.security.Password)
public Password getPassword()
setPassword(com.novell.service.security.Password)
,
getNewPassword()
public void setNewPassword(Password newPassword)
This is used when a modifyTokens (i.e. change password) request is going to be made. This new password will be used as the object's new password once the modifyTokens request is completed.
newPassword
- The new password for this identity.getNewPassword()
,
setPassword(com.novell.service.security.Password)
public Password getNewPassword()
setNewPassword(com.novell.service.security.Password)
,
getPassword()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |