org.teiid.connector.api
Class MappedUserIdentity

java.lang.Object
  extended by org.teiid.connector.api.MappedUserIdentity
All Implemented Interfaces:
ConnectorIdentity

public class MappedUserIdentity
extends java.lang.Object
implements ConnectorIdentity

This class represents a ConnectorIdentity keyed on a username with a mapped identity


Constructor Summary
MappedUserIdentity(java.lang.String username, java.lang.String mappedUser, java.lang.String password)
          Construct with a security context
 
Method Summary
 boolean equals(java.lang.Object obj)
          Implement equals based on the case-insensitive user name.
 java.lang.String getMappedUser()
           
 java.lang.String getPassword()
           
 int hashCode()
          Get hash code, based on user name
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappedUserIdentity

public MappedUserIdentity(java.lang.String username,
                          java.lang.String mappedUser,
                          java.lang.String password)
Construct with a security context

Parameters:
context - The context
Method Detail

equals

public boolean equals(java.lang.Object obj)
Implement equals based on the case-insensitive user name.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Other identity object
Returns:
True if other object is a UserIdentity with the same user name

hashCode

public int hashCode()
Get hash code, based on user name

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getMappedUser

public java.lang.String getMappedUser()

getPassword

public java.lang.String getPassword()


Copyright © 2009. All Rights Reserved.