org.jboss.jca.common.metadata.common
Class CredentialImpl

java.lang.Object
  extended by org.jboss.jca.common.metadata.common.CredentialImpl
All Implemented Interfaces:
Serializable, org.jboss.jca.common.api.metadata.common.Credential, org.jboss.jca.common.api.metadata.JCAMetadata, org.jboss.jca.common.api.metadata.ValidatableMetadata
Direct Known Subclasses:
DsSecurityImpl

public class CredentialImpl
extends Object
implements org.jboss.jca.common.api.metadata.common.Credential

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.Credential
org.jboss.jca.common.api.metadata.common.Credential.Tag
 
Constructor Summary
CredentialImpl(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()
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CredentialImpl

public CredentialImpl(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.common.Credential
Returns:
the userName.

getPassword

public final String getPassword()
Get the password.

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

getSecurityDomain

public final String getSecurityDomain()
Get the securityDomainManaged.

Specified by:
getSecurityDomain in interface org.jboss.jca.common.api.metadata.common.Credential
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/)