org.jboss.jca.common.metadata.common
Class CommonSecurityImpl

java.lang.Object
  extended by org.jboss.jca.common.metadata.common.CommonSecurityImpl
All Implemented Interfaces:
Serializable, org.jboss.jca.common.api.metadata.common.CommonSecurity, org.jboss.jca.common.api.metadata.JCAMetadata

public class CommonSecurityImpl
extends Object
implements org.jboss.jca.common.api.metadata.common.CommonSecurity

A SecurityImpl.

Author:
Stefano Maestri
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.jca.common.api.metadata.common.CommonSecurity
org.jboss.jca.common.api.metadata.common.CommonSecurity.Tag
 
Constructor Summary
CommonSecurityImpl(String userName, String password)
          Create a new SecurityImpl.
 
Method Summary
 boolean equals(Object obj)
           
 String getPassword()
          Get the password.
 String getUserName()
          Get the userName.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommonSecurityImpl

public CommonSecurityImpl(String userName,
                          String password)
Create a new SecurityImpl.

Parameters:
userName - userName
password - password
Method Detail

getUserName

public final String getUserName()
Get the userName.

Specified by:
getUserName in interface org.jboss.jca.common.api.metadata.common.CommonSecurity
Returns:
the userName.

getPassword

public final String getPassword()
Get the password.

Specified by:
getPassword in interface org.jboss.jca.common.api.metadata.common.CommonSecurity
Returns:
the password.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)