|
| 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 UserIdentityInterfacepublic void setAuthenticated(boolean value)
setAuthenticated in interface UserIdentityInterfacevalue - A true/false indicator of authentication.public java.lang.String getDomain()
getDomain in interface UserIdentityInterfacepublic void setDomain(java.lang.String domain)
setDomain in interface UserIdentityInterfacedomain - The String that denotes the domain for this
identity.public void setPrincipal(java.lang.Object principal)
setPrincipal in interface UserIdentityInterfaceprincipal - The principal to use to authenticate this user.public java.lang.Object getPrincipal()
getPrincipal in interface UserIdentityInterfacepublic void setCredential(java.lang.Object credential)
setCredential in interface UserIdentityInterfacecredential - A credential for this identity.public java.lang.Object getCredential()
getCredential in interface UserIdentityInterfacepublic java.lang.String getMechanism()
getMechanism in interface UserIdentityInterfacepublic java.lang.Object getUserIdentity()
getUserIdentity in interface UserIdentityInterfacepublic void setUserIdentity(java.lang.Object identity)
setUserIdentity in interface UserIdentityInterfaceidentity - The new authenticated identity for the user in this
domain.public boolean equals(java.lang.Object object)
equals in interface UserIdentityInterfaceequals in class java.lang.Objectobject - The object to compare against
public int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.Object clone()
clone in interface ConsumedResourceInterfaceclone in class java.lang.Objectpublic boolean isPrimary()
UserIdentityInterface
isPrimary in interface UserIdentityInterfacepublic java.lang.String toString()
toString in class java.lang.Objectpublic void setResolvedUserName(java.lang.String resolvedUserName)
resolvedUserName - The new resolved username.public java.lang.String getResolvedUserName()
UserIdentityInterface
getResolvedUserName in interface UserIdentityInterfacepublic 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 ConsumedResourceInterfacepublic java.lang.String getResourceValue()
ConsumedResourceInterface
getResourceValue in interface ConsumedResourceInterfacepublic java.lang.String getLocalizedResourceType()
ConsumedResourceInterface
getLocalizedResourceType in interface ConsumedResourceInterfacepublic java.lang.String getLocalizedResourceTypeAndValue()
ConsumedResourceInterface
getLocalizedResourceTypeAndValue in interface ConsumedResourceInterfacepublic java.lang.String getResourceType()
ConsumedResourceInterface
getResourceType in interface ConsumedResourceInterfacepublic int getResourceTypeCode()
ConsumedResourceInterface
getResourceTypeCode in interface ConsumedResourceInterfacepublic boolean isRequired()
ConsumedResourceInterface
isRequired in interface ConsumedResourceInterfacetrue 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 | |||||||||||||