Package oracle.stellent.ridc.auth.impl
Class BasicIdentity
java.lang.Object
oracle.stellent.ridc.auth.impl.BasicIdentity
A simple identity that associates a username with some web credentials
-
Constructor Summary
ConstructorsConstructorDescriptionBasicIdentity(String name) Build identity with no associated credentialsBasicIdentity(String name, char[] password) Associate a user ID with a basic password credentialBasicIdentity(String name, String password) Deprecated.BasicIdentity(String name, Credentials credentials) Associate a user with some credentialsBasicIdentity(Credentials.BasicCredentials credentials) Build an identity using only basic credentials. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of this principal.voidsetCredentials(Credentials credentials) void
-
Constructor Details
-
BasicIdentity
Build identity with no associated credentials- Parameters:
name- the identity name
-
BasicIdentity
Build an identity using only basic credentials. Gets the username from the basic credentials object.- Parameters:
credentials- the basic credentials.
-
BasicIdentity
Associate a user with some credentials- Parameters:
name- the user namecredentials- the credentials
-
BasicIdentity
Deprecated.Associate a user ID with a basic password credential- Parameters:
name- the user namepassword- the user password
-
BasicIdentity
Associate a user ID with a basic password credential- Parameters:
name- the user namepassword- the user password
-
-
Method Details
-
setName
-
setCredentials
-
getCredentials
- Specified by:
getCredentialsin interfaceIdentity- Returns:
- the credentials to use for web requests
-
getName
Returns the name of this principal.
-