|
Oracle Role Manager Java API Reference 10g (10.1.4) E14613-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.iam.rm.client.ClientFactory
public class ClientFactory
The source for clients for the Web Client API.
Constructor Summary | |
---|---|
ClientFactory() |
Method Summary | |
---|---|
static IdentityToken |
authenticatePerson(java.lang.String username) Authenticates as a person identified by the provided userId. |
static IdentityToken |
authenticatePersonFromCredentials(java.lang.String username, java.lang.String password) Authenticates as a person identified by the provided userId) and password. |
static IdentityToken |
authenticateSystemUser(java.lang.String username, java.lang.String password) Authenticates as a system identity with the provided userId and password. |
static Client |
newClient(IdentityToken identityToken) Creates a new Client bound to the provided IdentityToken (and hence the authentication details). |
static void |
setAlternateJndiPath(java.lang.String alternateJndiPath) Sets the Server EJB's JNDI path to something other than the default, typically only used for integration reasons. |
static void |
synchronizeIdentityTokenWithServer(IdentityToken identityToken) Resynchronizes the local copy of cached state with the server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientFactory()
Method Detail |
---|
public static IdentityToken authenticateSystemUser(java.lang.String username, java.lang.String password) throws javax.security.auth.login.LoginException
username
- userId to authenticate withpassword
- password to authenticate with that should match the stored password associated with the provided user IDIdentityToken
representing the authentication and that is used for client connection.javax.security.auth.login.LoginException
- if the login fails for any reasonpublic static IdentityToken authenticatePerson(java.lang.String username) throws javax.security.auth.login.LoginException
username
- userId to authenticate withIdentityToken
representing the authentication and that is used for client connection.javax.security.auth.login.LoginException
- if the login fails for any reasonpublic static IdentityToken authenticatePersonFromCredentials(java.lang.String username, java.lang.String password) throws javax.security.auth.login.LoginException
username
- userId of person to authenticate withpassword
- password to authenticate with that should match the stored password associated with the provided userIdIdentityToken
representing the authentication and that is used for client connection.javax.security.auth.login.LoginException
- if the login fails for any reasonpublic static void synchronizeIdentityTokenWithServer(IdentityToken identityToken) throws javax.security.auth.login.LoginException, ServerException
identityToken
- token that (possibly) needs updatingServerException
javax.security.auth.login.LoginException
- if failure updating user's informationpublic static Client newClient(IdentityToken identityToken) throws ServerException
Client
bound to the provided IdentityToken
(and hence the authentication details).identityToken
- IdentityToken
to use to represent the user that this Client
will act as.Client
bound to the provided IdentityToken
.ServerException
- if an error occurs during server metadata retrieval.public static void setAlternateJndiPath(java.lang.String alternateJndiPath)
alternateJndiPath
- new JNDI path to use to look up the Server EJB.
|
Oracle Role Manager Java API Reference 10g (10.1.4) E14613-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |