|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.user.UserContext
public class UserContext
The UserContext provides handles to the user identities and profile services. It is basically a clearinghouse for any information that applies to a user but is not session oriented. It has a name, a set of identities (credential sets), a handle to the UserProfile, and a list of repositories the user is connected to. It also has a JAAS LoginContext and a callback handler that is used for any authentication operations requested by or for this user.
| Field Summary | |
|---|---|
static java.lang.String |
MIDTIERINTERNAL_DOMAIN
|
| Fields inherited from interface com.sas.services.user.UserContextInterface |
|---|
IDPROPAGATION_SSPI, IDPROPAGATION_TRUSTED_PEER, INTERNAL_AUTH_DOMAIN, SHAREDRESOURCEKEY_ENVIRONMENT, SHAREDRESOURCEKEY_SERVICEID |
| Constructor Summary | |
|---|---|
UserContext()
Constructs a user context which will be exported as a remote object to the RMI system using the specified client and server socket factories. |
|
UserContext(java.lang.String name)
Construct a new user context with the user name. |
|
UserContext(javax.security.auth.Subject subject)
Constructs a user context for the specified subject. |
|
| Method Summary | |
|---|---|
void |
addException(java.lang.Exception exception)
Adds an exception. |
void |
addIdentity(UserIdentityInterface identity)
Adds a new authentication identity to this user context. |
void |
addLogChangeListener(LogChangeListener listener)
Receive a notification when the UserContext's logger is changed. |
void |
addRepository(java.lang.Object repository)
Add a repository to this user context. |
void |
addRepositoryGroup(RepositoryGroup group)
Add a repository group to this UserContext. |
void |
addServer(ServerInterface server)
Add a server to the list that this user is connected to. |
void |
addUserIdentityListener(UserIdentityListener listener)
|
boolean |
authenticate()
Authenticate a user based on their current OS identity. |
boolean |
authenticate(UserIdentityInterface ident,
java.util.Map options)
Authenticates a user identity. |
void |
clearExceptions()
Clears the exceptions. |
void |
destroy()
Destroy the user context. |
void |
enableLocalAdminMode(java.lang.String authDomain)
This sets up a special case where an administrative user with an internal account is used to authenticate a user. |
boolean |
equals(java.lang.Object o)
Test against another object for equality. |
java.util.List |
getActions(java.lang.String appName)
Get a List of actions associated with an application that this user can perform. |
java.util.List |
getActions(java.lang.String appName,
boolean onlyGrantedActions)
Get a List of actions associated with an application. |
java.lang.String |
getAppSource()
Get the name of the application that initiated the login request for this UserContext. |
RepositoryInterface |
getAuthRepository()
Get a handle to the repository the user authenticated against. |
java.lang.String |
getAuthRepositoryName()
Get the Information Service configured name of the repository that was used for authentication. |
ServerInterface |
getAuthServer()
Get a handle to the metadata server the user authenticated against. |
java.lang.String |
getAuthServerName()
Get the definition name of the server the user authenticated against. |
RemoteCallbackHandler |
getChallengeCallbackHandler()
Get the object that will handle credential challenge callbacks. |
java.lang.String |
getClientSource()
Get the client location idetifier where the login request originated. |
java.lang.String |
getDescription()
Get the common description for this user. |
java.lang.Exception[] |
getExceptions()
Gets the exceptions. |
java.util.Map<java.lang.String,com.sas.services.security.ApplicationAuthorization> |
getGrantedApplicationActions(java.lang.String... applicationName)
Returns a map of actions granted to the user for the specified application(s). |
java.util.List |
getGroups()
Get a List of the groups this user is a member of. |
java.util.List |
getIdentities()
Get an Iterator of the identities which exist for this user context. |
java.util.List |
getIdentitiesByDomain(java.lang.String domain,
boolean issueChallenge,
java.lang.String challengePrompt)
This method returns a list of all the credential sets that are available for the requested domain. |
UserIdentityInterface |
getIdentityByDomain(java.lang.String domain)
Get an identity by domain. |
UserIdentityInterface |
getIdentityByDomain(java.lang.String domain,
boolean issueChallenge)
Get an identity by domain. |
UserIdentityInterface |
getIdentityByDomain(java.lang.String domain,
boolean issueChallenge,
java.lang.String prompt)
Gets a user identify by domain. |
java.lang.String |
getIDPropagation()
If the UserContext was authenticated using an ID propagation mechanism such as SSPI, the name of the ID propagation mechanism is returned. |
static InformationServiceInterface |
getInformationService()
Gets a foundation Information Service. |
java.lang.String |
getKey()
Get the user key. |
java.util.Locale |
getLocale()
Get the locale for this user. |
LoggerInterface |
getLogger()
Deprecated. The Logging Service classes have been deprecated. use Log4J directly. |
LoginCallbackHandler |
getLoginCallback()
Get the callback handler. |
protected java.lang.String |
getLoginConfigAppName()
|
long |
getLoginTime()
Get the timestamp when the user was authenticated. |
java.lang.String |
getName()
Get the user name. |
IdentityInterface |
getPerson()
Return the IdentityInterface object that represents this user. |
java.lang.String |
getPersonFQID()
Get the FQID of the authenticated Identity. |
java.util.Set |
getPrincipals()
Gets the set of principals. |
java.util.Set |
getPrivateCredentials()
Gets the set of private credentials. |
ProfileInterface |
getProfile()
Get the User's profile context. |
java.util.Set |
getPublicCredentials()
Gets the set of public credentials. |
java.util.List |
getRepositories()
Get an iterator of the repositories this user is connected to. |
RepositoryInterface |
getRepository(java.lang.String name)
Gets the repository for the specified name. |
RepositoryGroup |
getRepositoryGroup(java.lang.String name)
Get a repository group from this UserContext. |
java.lang.String |
getResolvedUserId()
Return the metadata server resolved user id. |
java.util.List |
getRoles()
Get a List of the roles this user is a member of. |
ServerInterface |
getServer(java.lang.String name)
Get a specific named Information Service server from this user. |
java.util.List |
getServers()
Get a List of the servers this user is connected to. |
SessionContextInterface |
getSessionContext()
Get the session context for this user. |
java.lang.Object |
getSharedResource(java.lang.String key)
Get an object from the shared resource map. |
java.lang.String |
getUniqueId()
Gets the unique ID associated with this user context. |
static UserServiceInterface |
getUserService()
Gets a foundation User Service. |
static UserServiceInterface |
getUserService(java.lang.String serviceId)
|
boolean |
hasCapability(java.lang.String appName,
java.lang.String action)
Check whether this user has the capability to perform a specific action for a particular application. |
boolean |
isDestroyed()
Determines whether or not this user context has been destroyed. |
boolean |
isInAnyGroup(java.util.List groupList)
Check whether the user is a member of any of the groups in the list. |
boolean |
isInAnyRole(java.util.List roleList)
Check whether the user is a member of any of the roles in the list. |
boolean |
isInGroup(java.lang.String group)
Check whether the user is a member of a given group. |
boolean |
isInRole(java.lang.String role)
Check whether the user is a member of a given role. |
boolean |
isInternalUser()
Return a boolean indicating if this user was created using an internal userid. |
java.lang.Object |
putSharedResource(java.lang.String key,
java.lang.Object value)
Put an object into the shared resource map. |
void |
refreshRepositoryData()
Refresh all of the data that's been retrieved using the Information Service during the life of this UserContext. |
void |
removeIdentity(UserIdentityInterface identity)
Remove an identity from the context. |
void |
removeRepository(java.lang.Object repository)
Remove a repository from this context. |
void |
removeRepositoryGroup(RepositoryGroup group)
Remove a repository group from this UserContext. |
void |
removeServer(ServerInterface server)
Remove a server from the list that this user is currently connected to. |
java.util.List |
requestCredentialList(java.lang.String authDomain,
boolean issueChallenge,
java.lang.String prompt)
|
com.sas.metadata.remote.MdCredential |
requestCredentials(java.lang.String authDomain,
boolean issueChallenge,
java.lang.String prompt)
|
void |
setAppSource(java.lang.String source)
Set the application source identifier that initiated the logon request for this UserContext. |
void |
setChallengeCallbackHandler(RemoteCallbackHandler handler)
Set the object that will be used to handle credential challenge callbacks. |
void |
setClientSource(java.lang.String source)
Set the source location identifier for this UserContext. |
void |
setKey(java.lang.String key)
Set the user key. |
void |
setLocale(java.util.Locale locale)
Set the locale to use for this user session. |
void |
setName(java.lang.String name)
Set the user name. |
void |
setPerson(IdentityInterface identity)
This method gets called by UserService as part of the UserContext initialization. |
void |
setSessionContext(SessionContextInterface session)
Set the session context that this user context will use for logging, etc. |
byte[] |
toByteArray()
|
java.lang.String |
toString()
|
| Field Detail |
|---|
public static final java.lang.String MIDTIERINTERNAL_DOMAIN
| Constructor Detail |
|---|
public UserContext(javax.security.auth.Subject subject)
throws java.rmi.RemoteException
subject - User context's subject.
java.rmi.RemoteException - if a networking issue is encountered.
public UserContext()
throws java.rmi.RemoteException
java.rmi.RemoteException - if unable to export a remote object to the RMI system.
public UserContext(java.lang.String name)
throws java.rmi.RemoteException
name - The name identitfying the user.
java.rmi.RemoteException - if a networking issue is encountered.| Method Detail |
|---|
public static InformationServiceInterface getInformationService()
throws ServiceException
ServiceException - if unable to obtain an information service.
public static UserServiceInterface getUserService()
throws ServiceException
ServiceException - if unable to obtain a user service.
public static UserServiceInterface getUserService(java.lang.String serviceId)
throws ServiceException
ServiceException
public void destroy()
throws java.rmi.RemoteException
destroy in interface UserContextInterfacejava.rmi.RemoteException - if a networking issue is encountered.
public java.lang.String getName()
throws java.rmi.RemoteException
getName in interface UserContextInterfacejava.rmi.RemoteException - if a networking issue is encountered.
public java.lang.String getPersonFQID()
throws java.rmi.RemoteException
UserContextInterface
getPersonFQID in interface UserContextInterfacejava.rmi.RemoteException - In the event of remote object failure.
public java.lang.String getDescription()
throws java.rmi.RemoteException
UserContextInterface
getDescription in interface UserContextInterfacejava.rmi.RemoteException - in the event of remote object failure.
public final java.lang.String getAppSource()
throws java.rmi.RemoteException
UserContextInterface
getAppSource in interface UserContextInterfacejava.rmi.RemoteException - In the event of remote object failure.
public final java.lang.String getClientSource()
throws java.rmi.RemoteException
UserContextInterface
getClientSource in interface UserContextInterfacejava.rmi.RemoteException - In the event of remote object failure.
public void setAppSource(java.lang.String source)
throws java.rmi.RemoteException
UserContextInterface
setAppSource in interface UserContextInterfacesource - The application source that requested the
creation of the UserContext. This is usualy either the
main Java class name, or an identifiable application
name.
java.rmi.RemoteException - In the event of remote object failure.
public void setClientSource(java.lang.String source)
throws java.rmi.RemoteException
UserContextInterface
setClientSource in interface UserContextInterfacesource - The source location identifier (usually a
TCP/IP address).
java.rmi.RemoteException - In the event of remote object failure.
public void setSessionContext(SessionContextInterface session)
throws java.rmi.RemoteException
setSessionContext in interface UserContextInterfacesession - The session context.
java.rmi.RemoteException - in the event of network failure.
public SessionContextInterface getSessionContext()
throws java.rmi.RemoteException
getSessionContext in interface UserContextInterfacejava.rmi.RemoteException - in the event of network failure.
public void setName(java.lang.String name)
throws java.rmi.RemoteException
setName in interface UserContextInterfacename - The new name.
java.rmi.RemoteException - if a networking issue is encountered.
@Deprecated
public LoggerInterface getLogger()
throws java.rmi.RemoteException
getLogger in interface UserContextInterfacejava.rmi.RemoteException - in the event of network problems.
public java.lang.String getKey()
throws java.rmi.RemoteException
getKey in interface UserContextInterfacejava.rmi.RemoteException - if a networking issue is encountered.
public void setKey(java.lang.String key)
throws java.rmi.RemoteException
setKey in interface UserContextInterfacekey - The key that identifies this user.
java.rmi.RemoteException - if a networking issue is encountered.
public java.lang.String getIDPropagation()
throws ServiceException,
java.rmi.RemoteException
UserContextInterfacenull is returned
getIDPropagation in interface UserContextInterfaceServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.UserContextInterface.IDPROPAGATION_SSPI,
UserContextInterface.IDPROPAGATION_TRUSTED_PEER
public void addIdentity(UserIdentityInterface identity)
throws java.rmi.RemoteException
addIdentity in interface UserContextInterfaceidentity - The new identity to add to this context.
java.rmi.RemoteException - if a networking issue is encountered.public void addUserIdentityListener(UserIdentityListener listener)
addUserIdentityListener in interface UserContextInterfacepublic void removeIdentity(UserIdentityInterface identity)
removeIdentity in interface UserContextInterfaceidentity - The identity to remove.
public java.util.List getIdentities()
throws java.rmi.RemoteException
getIdentities in interface UserContextInterfacejava.rmi.RemoteException - if a networking issue is encountered.
public UserIdentityInterface getIdentityByDomain(java.lang.String domain)
throws java.rmi.RemoteException
getIdentityByDomain in interface UserContextInterfacedomain - The domain to search for in the identities.
java.rmi.RemoteException - if a networking issue is encountered.
public UserIdentityInterface getIdentityByDomain(java.lang.String domain,
boolean issueChallenge)
throws java.rmi.RemoteException,
ServiceException
getIdentityByDomain in interface UserContextInterfacedomain - The domain to search for in the identities.issueChallenge - If true, the callback handler set in the User Service will be used to challenge the user to
provide the requested credentials.
java.rmi.RemoteException - if a networking issue is encountered.
ServiceException - if unable to obtain the identity by domain.
public UserIdentityInterface getIdentityByDomain(java.lang.String domain,
boolean issueChallenge,
java.lang.String prompt)
throws java.rmi.RemoteException,
ServiceException
getIdentityByDomain in interface UserContextInterfacedomain - Authentication domainissueChallenge - true if a challenge should be issued.prompt - Challenge prompt
null if an idenity was not found.
java.rmi.RemoteException - if a networking issue is encountered.
ServiceException - if unable to obtain the identity by domain.
public java.util.List getIdentitiesByDomain(java.lang.String domain,
boolean issueChallenge,
java.lang.String challengePrompt)
throws java.rmi.RemoteException,
ServiceException
getIdentitiesByDomain in interface UserContextInterfacedomain - The Authentication Domain to get credentials for.issueChallenge - If true, if the user currently doesn't have credentials for the requested authentication
domain, a challenge is issued back to the user for them.challengePrompt - A string to present to the user with the challenge.
java.rmi.RemoteException - In the event of remote object failure.
ServiceException - If a service error occurs.
public void addRepositoryGroup(RepositoryGroup group)
throws ServiceException,
java.rmi.RemoteException
UserContextInterfaceInformationServiceInterface.searchGroupName(UserContextInterface, String, com.sas.services.information.FilterInterface),
or InformationServiceInterface.searchGroupNameWithFilterArray(UserContextInterface, String, com.sas.services.information.FilterInterface[]).
addRepositoryGroup in interface UserContextInterfacegroup - The repository group to add.
ServiceException - If the group name is null, or if a group with the same name
already exists in the UserContext.
java.rmi.RemoteException - In the event of remote object failure.
public void removeRepositoryGroup(RepositoryGroup group)
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
removeRepositoryGroup in interface UserContextInterfacegroup - The Group to remove.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public RepositoryGroup getRepositoryGroup(java.lang.String name)
throws ServiceException,
java.rmi.RemoteException
UserContextInterfaceInformationServiceInterface.searchGroup(UserContextInterface, com.sas.services.information.RepositoryGroup, com.sas.services.information.FilterInterface),
or InformationServiceInterface.searchGroupWithFilterArray(UserContextInterface, com.sas.services.information.RepositoryGroup, com.sas.services.information.FilterInterface[]).
getRepositoryGroup in interface UserContextInterfacename - The name of the group to return.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public ProfileInterface getProfile()
throws java.rmi.RemoteException
getProfile in interface UserContextInterfacejava.rmi.RemoteException - in a networking issue is encountered.
public void addServer(ServerInterface server)
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
addServer in interface UserContextInterfaceserver - A server to which this user has an active connection.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public void removeServer(ServerInterface server)
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
removeServer in interface UserContextInterfaceserver - The server to remove from the active list.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public ServerInterface getServer(java.lang.String name)
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
getServer in interface UserContextInterfacename - The configured name of the server to get from the connected list.
ServerInterface with the requested name,
or null if it's not connected.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public java.util.List getServers()
throws java.rmi.RemoteException
UserContextInterface
getServers in interface UserContextInterfaceServerInterface
objects this user has connections to.
java.rmi.RemoteException - In the event of remote object failure.
public void addRepository(java.lang.Object repository)
throws java.rmi.RemoteException
addRepository in interface UserContextInterfacerepository - A connected repository that uses an identity for this user
java.rmi.RemoteException - in a networking issue is encountered.
public void removeRepository(java.lang.Object repository)
throws java.rmi.RemoteException
removeRepository in interface UserContextInterfacerepository - The repository to remove from this context.
java.rmi.RemoteException - in a networking issue is encountered.
public RepositoryInterface getRepository(java.lang.String name)
throws ServiceException,
java.rmi.RemoteException
getRepository in interface UserContextInterfacename - Repository's name.
null if a repository could not be located for the specified name.
java.rmi.RemoteException - if a networking issue is encountered.
ServiceException - if unable to obtain a repository.
public java.lang.String getAuthRepositoryName()
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
getAuthRepositoryName in interface UserContextInterfaceServiceException - in the event of a service failure.
java.rmi.RemoteException - in the event of a network failure.
public RepositoryInterface getAuthRepository()
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
getAuthRepository in interface UserContextInterfaceServiceException - in the event of a service failure.
java.rmi.RemoteException - in the event of a network failure.
public ServerInterface getAuthServer()
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
getAuthServer in interface UserContextInterfaceServiceException - If a server error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public java.lang.String getAuthServerName()
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
getAuthServerName in interface UserContextInterfaceServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public java.util.List getRepositories()
throws java.rmi.RemoteException
getRepositories in interface UserContextInterfacejava.rmi.RemoteException - in a networking issue is encountered.
public void refreshRepositoryData()
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
refreshRepositoryData in interface UserContextInterfaceServiceException - If an exception occurs during the
refresh operation.
java.rmi.RemoteException - In the event of remote object failure.public boolean equals(java.lang.Object o)
equals in class java.rmi.server.RemoteObjecto - An object to test against this one for equality.
public java.util.Set getPrincipals()
throws java.rmi.RemoteException
getPrincipals in interface UserContextInterfacejava.rmi.RemoteException - if a networking issue is encountered.
public java.util.Set getPublicCredentials()
throws java.rmi.RemoteException
getPublicCredentials in interface UserContextInterfacejava.rmi.RemoteException - if a networking issue is encountered.
public java.util.Set getPrivateCredentials()
throws java.rmi.RemoteException
getPrivateCredentials in interface UserContextInterfacejava.rmi.RemoteException - if a networking issue is encountered.
public LoginCallbackHandler getLoginCallback()
throws java.rmi.RemoteException
getLoginCallback in interface UserContextInterfacejava.rmi.RemoteException - in a networking issue is encountered.
public boolean authenticate()
throws java.rmi.RemoteException
UserContextInterface
authenticate in interface UserContextInterfacejava.rmi.RemoteException - In the event of remote object failure.
public boolean authenticate(UserIdentityInterface ident,
java.util.Map options)
throws java.rmi.RemoteException
authenticate in interface UserContextInterfaceident - The identity to authenticate.options - Additional options for the authentication process (this may include a host and port for an
authentication server and other information).
java.rmi.RemoteException - in a networking issue is encountered.
public void addException(java.lang.Exception exception)
throws java.rmi.RemoteException
addException in interface UserContextInterfaceexception - Exception to add.
java.rmi.RemoteException - if a networking issue is encountered.
public void clearExceptions()
throws java.rmi.RemoteException
clearExceptions in interface UserContextInterfacejava.rmi.RemoteException - if a networking issue is encountered.
public java.lang.Exception[] getExceptions()
throws java.rmi.RemoteException
getExceptions in interface UserContextInterfacejava.rmi.RemoteException - if a networking issue is encountered.
public void setChallengeCallbackHandler(RemoteCallbackHandler handler)
throws java.rmi.RemoteException
setChallengeCallbackHandler in interface UserContextInterfacehandler - The credential callback handler. This object will have to be an implementation of the
javax.security.auth.callback.CallbackHandler interface.
java.rmi.RemoteException - In the event of a remote failure.
public RemoteCallbackHandler getChallengeCallbackHandler()
throws java.rmi.RemoteException
getChallengeCallbackHandler in interface UserContextInterfacejava.rmi.RemoteException - in a networking issue is encountered.
public IdentityInterface getPerson()
throws java.rmi.RemoteException
UserContextInterface
getPerson in interface UserContextInterfacejava.rmi.RemoteException - in the event of remote object failure.
public void setPerson(IdentityInterface identity)
throws java.rmi.RemoteException,
java.lang.IllegalStateException
setPerson in interface UserContextInterfaceidentity - Person's identity.
java.rmi.RemoteException - In the event of remote object failure.
java.lang.IllegalStateException - If the identity object has already been set.
public java.lang.String getUniqueId()
throws java.rmi.RemoteException
getUniqueId in interface UserContextInterfacejava.rmi.RemoteException - if a network exception occurs.
public boolean isDestroyed()
throws java.rmi.RemoteException
isDestroyed in interface UserContextInterfacetrue if this user context has been destroyed.
java.rmi.RemoteException - if a network exception occurs.
public long getLoginTime()
throws java.rmi.RemoteException
UserContextInterface
getLoginTime in interface UserContextInterfacejava.rmi.RemoteException - In the event of remote object failure.
public java.lang.Object getSharedResource(java.lang.String key)
throws java.rmi.RemoteException
UserContextInterface
getSharedResource in interface UserContextInterfacekey - The key to the object in the resource map.
java.rmi.RemoteException - In the event of remote object failure.
public java.lang.Object putSharedResource(java.lang.String key,
java.lang.Object value)
throws java.rmi.RemoteException
UserContextInterface
putSharedResource in interface UserContextInterfacekey - The lookup key for the resource.value - The resource object to store.
java.rmi.RemoteException - In the event of remote object failure.public java.lang.String toString()
toString in class java.rmi.server.RemoteObject
public byte[] toByteArray()
throws java.rmi.RemoteException
toByteArray in interface UserContextInterfacejava.rmi.RemoteException
protected java.lang.String getLoginConfigAppName()
throws ServiceException,
java.rmi.RemoteException
ServiceException
java.rmi.RemoteException
public void addLogChangeListener(LogChangeListener listener)
throws java.rmi.RemoteException
UserContextInterface
addLogChangeListener in interface UserContextInterfacelistener - An object that wishes to receive notification when the
user context log changes.
java.rmi.RemoteException - In the event of remote object failure.
public java.util.List getRoles()
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
getRoles in interface UserContextInterfaceServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public boolean isInAnyRole(java.util.List roleList)
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
isInAnyRole in interface UserContextInterfaceroleList - A List of Strings representing role names.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public boolean isInRole(java.lang.String role)
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
isInRole in interface UserContextInterfacerole - The role name to check for.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public java.util.List getActions(java.lang.String appName)
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
Note: UserContextInterface.getGrantedApplicationActions(String...) is recommended instead
of this method.
getActions in interface UserContextInterfaceappName - The SoftwareComponent name associated with the application.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.com.sas.services.security.ApplicationAuthorization()
public java.util.List getActions(java.lang.String appName,
boolean onlyGrantedActions)
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
Note: Use UserContextInterface.getGrantedApplicationActions(String...) (for granted
actions) or com.sas.services.information.metadata.ApplicationInterface#getActions(com.sas.services.information.metadata.ApplicationInterface...)
(for all actions) instead of this method.
getActions in interface UserContextInterfaceappName - The SoftwareComponent name associated with the application.onlyGrantedActions - If true then return only the actions that are granted to this user; otherwise, return all actions.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.com.sas.services.security.ApplicationAuthorization()
public java.util.Map<java.lang.String,com.sas.services.security.ApplicationAuthorization> getGrantedApplicationActions(java.lang.String... applicationName)
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
getGrantedApplicationActions in interface UserContextInterfaceapplicationName - one or more application names
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.com.sas.services.security.ApplicationAuthorization()
public boolean hasCapability(java.lang.String appName,
java.lang.String action)
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
hasCapability in interface UserContextInterfaceappName - The SoftwareComponent name associated with the application.action - The action to perform.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public boolean isInGroup(java.lang.String group)
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
isInGroup in interface UserContextInterfacegroup - The group name to check for.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public boolean isInAnyGroup(java.util.List groupList)
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
isInAnyGroup in interface UserContextInterfacegroupList - A List of Strings representing group names.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public java.util.List getGroups()
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
getGroups in interface UserContextInterfaceServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public com.sas.metadata.remote.MdCredential requestCredentials(java.lang.String authDomain,
boolean issueChallenge,
java.lang.String prompt)
throws java.rmi.RemoteException,
com.sas.metadata.remote.MdException
requestCredentials in interface com.sas.metadata.remote.CredentialResolverjava.rmi.RemoteException
com.sas.metadata.remote.MdException
public java.util.List requestCredentialList(java.lang.String authDomain,
boolean issueChallenge,
java.lang.String prompt)
throws java.rmi.RemoteException,
com.sas.metadata.remote.MdException
requestCredentialList in interface com.sas.metadata.remote.CredentialResolverjava.rmi.RemoteException
com.sas.metadata.remote.MdException
public final java.lang.String getResolvedUserId()
throws ServiceException,
java.rmi.RemoteException
getResolvedUserId in interface UserContextInterfaceServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public final boolean isInternalUser()
throws ServiceException,
java.rmi.RemoteException
isInternalUser in interface UserContextInterfaceServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public java.util.Locale getLocale()
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
getLocale in interface UserContextInterfaceServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public void enableLocalAdminMode(java.lang.String authDomain)
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
enableLocalAdminMode in interface UserContextInterfaceauthDomain - The domain to retrieve all credentials for. This overrides
my default behavior of not getting any more credentials for the primary authentication
domain.
ServiceException - If a metadata or service-level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public void setLocale(java.util.Locale locale)
throws ServiceException,
java.rmi.RemoteException
UserContextInterface
setLocale in interface UserContextInterfacelocale - The preferred locale for this user for the live of this session.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||