|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.user.SimpleUserIdentity
public class SimpleUserIdentity
The SimpleUserIdentity class implements a simple user/password identity.
Constructor Summary | |
---|---|
SimpleUserIdentity()
Constructs a default instance. |
|
SimpleUserIdentity(boolean isPrimary)
Constructs an identity which may be designated as a primary. |
|
SimpleUserIdentity(java.lang.String principal,
java.lang.String credential,
java.lang.String domain)
Construct new identity given the principal, credential, and domain strings. |
|
SimpleUserIdentity(java.lang.String principal,
java.lang.String credential,
java.lang.String domain,
boolean isPrimary)
Constructs an identity for the specified principal, credential, domain. |
|
SimpleUserIdentity(java.lang.String uid,
java.lang.String principal,
java.lang.String credential,
java.lang.String domain)
Construct new identity given the unique ID, principal, credential, and domain strings. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a clone of this object by copying the values for each of its attributes. |
boolean |
equals(java.lang.Object object)
Compare against another object for equality. |
java.lang.Object |
getCredential()
Get the credential for this identity. |
java.lang.String |
getDomain()
Get the string identifying the domain this identity applies to. |
java.lang.String |
getLocalizedResourceType()
Gets a localized value describing the resource's type. |
java.lang.String |
getLocalizedResourceTypeAndValue()
Gets a localized value describing the resource's type and value. |
java.lang.String |
getMechanism()
Get the authentication mechanism for this identity. |
java.lang.Object |
getPrincipal()
Get the principal. |
java.lang.String |
getResolvedUserName()
Get the user name that was resolved by the authentication server. |
java.lang.String |
getResourceID()
Gets the id that uniquely identifies the resource within a service's configuration. |
java.lang.String |
getResourceType()
Gets a value describing the resource's type. |
int |
getResourceTypeCode()
Gets the code describing the resource's type. |
java.lang.String |
getResourceValue()
Gets the value used to identify the service configuration resource. |
java.lang.Object |
getUserIdentity()
Deprecated. Use getPrincipal instead. |
boolean |
hasConflict(SimpleUserIdentity other)
Indicates whether some other object conflicts with this one. |
int |
hashCode()
Gets the hash code. |
boolean |
isAuthenticated()
Return a flag indicating whether this identity has been authenticated or not. |
boolean |
isPrimary()
Return a flag indicating if this is the primary authentication credential set. |
boolean |
isRequired()
Determines if this resource is required by the service's configuration. |
boolean |
isSticky()
|
void |
setAuthenticated(boolean value)
Set the flag indicating this identity has been authenticated. |
void |
setCredential(java.lang.Object credential)
Set the credential for this identity. |
void |
setDomain(java.lang.String domain)
Set the domain string for this identity. |
void |
setPrincipal(java.lang.Object principal)
Set the principal to use for authentication. |
void |
setResolvedUserName(java.lang.String resolvedUserName)
Set the resolved username. |
void |
setSticky(boolean sticky)
|
void |
setUserIdentity(java.lang.Object identity)
Deprecated. This adds no information above and beyond the principal. |
java.lang.String |
toString()
Gets a string representation of this user identity. |
Constructor Detail |
---|
public SimpleUserIdentity()
public SimpleUserIdentity(boolean isPrimary)
isPrimary
- Primary identity.public SimpleUserIdentity(java.lang.String principal, java.lang.String credential, java.lang.String domain)
principal
- User principalcredential
- User's credentialdomain
- User's authentication domain.public SimpleUserIdentity(java.lang.String uid, java.lang.String principal, java.lang.String credential, java.lang.String domain)
uid
- Unique identifier.principal
- User principalcredential
- User's credentialdomain
- User's authentication domain.public SimpleUserIdentity(java.lang.String principal, java.lang.String credential, java.lang.String domain, boolean isPrimary)
principal
- Principalcredential
- Credentialdomain
- DomainisPrimary
- Whether or not the identity is the primary.Method Detail |
---|
public boolean isAuthenticated()
isAuthenticated
in interface UserIdentityInterface
public void setAuthenticated(boolean value)
setAuthenticated
in interface UserIdentityInterface
value
- A true/false indicator of authentication.public java.lang.String getDomain()
getDomain
in interface UserIdentityInterface
public void setDomain(java.lang.String domain)
setDomain
in interface UserIdentityInterface
domain
- The String that denotes the domain for this
identity.public void setPrincipal(java.lang.Object principal)
setPrincipal
in interface UserIdentityInterface
principal
- The principal to use to authenticate this user.public java.lang.Object getPrincipal()
getPrincipal
in interface UserIdentityInterface
public void setCredential(java.lang.Object credential)
setCredential
in interface UserIdentityInterface
credential
- A credential for this identity.public java.lang.Object getCredential()
getCredential
in interface UserIdentityInterface
public java.lang.String getMechanism()
getMechanism
in interface UserIdentityInterface
public java.lang.Object getUserIdentity()
getUserIdentity
in interface UserIdentityInterface
public void setUserIdentity(java.lang.Object identity)
setUserIdentity
in interface UserIdentityInterface
identity
- The new authenticated identity for the user in this
domain.public boolean equals(java.lang.Object object)
equals
in interface UserIdentityInterface
equals
in class java.lang.Object
object
- The object to compare against
public int hashCode()
hashCode
in class java.lang.Object
public final java.lang.Object clone()
clone
in interface ConsumedResourceInterface
clone
in class java.lang.Object
public boolean isPrimary()
UserIdentityInterface
isPrimary
in interface UserIdentityInterface
public java.lang.String toString()
toString
in class java.lang.Object
public void setResolvedUserName(java.lang.String resolvedUserName)
resolvedUserName
- The new resolved username.public java.lang.String getResolvedUserName()
UserIdentityInterface
getResolvedUserName
in interface UserIdentityInterface
public final boolean hasConflict(SimpleUserIdentity other)
other
- The other identity.
true
if this object conflicts with the other identity or
false
otherwise.public java.lang.String getResourceID()
ConsumedResourceInterface
getResourceID
in interface ConsumedResourceInterface
public java.lang.String getResourceValue()
ConsumedResourceInterface
getResourceValue
in interface ConsumedResourceInterface
public java.lang.String getLocalizedResourceType()
ConsumedResourceInterface
getLocalizedResourceType
in interface ConsumedResourceInterface
public java.lang.String getLocalizedResourceTypeAndValue()
ConsumedResourceInterface
getLocalizedResourceTypeAndValue
in interface ConsumedResourceInterface
public java.lang.String getResourceType()
ConsumedResourceInterface
getResourceType
in interface ConsumedResourceInterface
public int getResourceTypeCode()
ConsumedResourceInterface
getResourceTypeCode
in interface ConsumedResourceInterface
public boolean isRequired()
ConsumedResourceInterface
isRequired
in interface ConsumedResourceInterface
true
if this resource is required by the service's
configuration.public boolean isSticky()
public void setSticky(boolean sticky)
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |