org.jboss.jca.common.metadata.ds
Class DsSecurityImpl

java.lang.Object
  extended by org.jboss.jca.common.metadata.ds.DsSecurityImpl
All Implemented Interfaces:
Serializable, org.jboss.jca.common.api.metadata.ds.DsSecurity, org.jboss.jca.common.api.metadata.JCAMetadata, org.jboss.jca.common.api.metadata.ValidatableMetadata

public class DsSecurityImpl
extends Object
implements org.jboss.jca.common.api.metadata.ds.DsSecurity

A SecurityImpl.

Author:
Stefano Maestri
See Also:
Serialized Form

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

Constructor Detail

DsSecurityImpl

public DsSecurityImpl(String userName,
                      String password,
                      String securityDomain)
               throws org.jboss.jca.common.api.validator.ValidateException
Create a new SecurityImpl.

Parameters:
userName - userName
password - password
securityDomain - securityDomain
Throws:
org.jboss.jca.common.api.validator.ValidateException - ValidateException
Method Detail

getUserName

public final String getUserName()
Get the userName.

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

getPassword

public final String getPassword()
Get the password.

Specified by:
getPassword in interface org.jboss.jca.common.api.metadata.ds.DsSecurity
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

getSecurityDomain

public final String getSecurityDomain()
Get the securityDomainManaged.

Specified by:
getSecurityDomain in interface org.jboss.jca.common.api.metadata.ds.DsSecurity
Returns:
the securityDomainManaged.

validate

public void validate()
              throws org.jboss.jca.common.api.validator.ValidateException
Specified by:
validate in interface org.jboss.jca.common.api.metadata.ValidatableMetadata
Throws:
org.jboss.jca.common.api.validator.ValidateException


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