Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


oracle.stellent.ridc.auth.impl
Class BasicIdentity

java.lang.Object
  extended by oracle.stellent.ridc.auth.impl.BasicIdentity

All Implemented Interfaces:
java.security.Principal, Identity

public class BasicIdentity
extends java.lang.Object
implements Identity

A simple identity that associates a username with some web credentials


Constructor Summary
BasicIdentity(Credentials.BasicCredentials credentials)
          Build an identity using only basic credentials.
BasicIdentity(java.lang.String name)
          Build identity with no associated credentials
BasicIdentity(java.lang.String name, Credentials credentials)
          Associate a user with some credentials
BasicIdentity(java.lang.String name, java.lang.String password)
          Associate a user ID with a basic password credential

 

Method Summary
 Credentials getCredentials()
           
 java.lang.String getName()
          Returns the name of this principal.
 void setCredentials(Credentials credentials)
           
 void setName(java.lang.String name)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface java.security.Principal
equals, hashCode, toString

 

Constructor Detail

BasicIdentity

public BasicIdentity(java.lang.String name)
Build identity with no associated credentials
Parameters:
name - the identity name

BasicIdentity

public BasicIdentity(Credentials.BasicCredentials credentials)
Build an identity using only basic credentials. Gets the username from the basic credentials object.
Parameters:
credentials - the basic credentials.

BasicIdentity

public BasicIdentity(java.lang.String name,
                     Credentials credentials)
Associate a user with some credentials
Parameters:
name - the user name
credentials - the credentials

BasicIdentity

public BasicIdentity(java.lang.String name,
                     java.lang.String password)
Associate a user ID with a basic password credential
Parameters:
name - the user name
password - the user password

Method Detail

setName

public void setName(java.lang.String name)

setCredentials

public void setCredentials(Credentials credentials)

getCredentials

public Credentials getCredentials()
Specified by:
getCredentials in interface Identity
Returns:
the credentials to use for web requests

getName

public java.lang.String getName()
Returns the name of this principal.
Specified by:
getName in interface java.security.Principal
Returns:
the name of this principal.

Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.