org.rimudb
Class CredentialValidator

java.lang.Object
  extended by org.rimudb.CredentialValidator

public class CredentialValidator
extends java.lang.Object

Author:
Simon Ritchie This class is used to validate database credentials. It can be used for user facing clients that need to do user/password validation.

Constructor Summary
CredentialValidator(Database database)
          Create a Credential Validator.
 
Method Summary
 java.lang.String getPassword()
           
 java.lang.String getUrl()
           
 java.lang.String getUser()
           
 void setPassword(java.lang.String password)
           
 void setUrl(java.lang.String url)
           
 void setUser(java.lang.String user)
           
 java.lang.String validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CredentialValidator

public CredentialValidator(Database database)
Create a Credential Validator. The database does not have to be connected, as it is just used as a means to get the JDBC driver name.

Parameters:
database - Database
Method Detail

validate

public java.lang.String validate()

setUrl

public void setUrl(java.lang.String url)
Parameters:
url - the url to set

getUrl

public java.lang.String getUrl()
Returns:
the url

setUser

public void setUser(java.lang.String user)
Parameters:
user - the user to set

getUser

public java.lang.String getUser()
Returns:
the user

setPassword

public void setPassword(java.lang.String password)
Parameters:
password - the password to set

getPassword

public java.lang.String getPassword()
Returns:
the password


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.