org.axway.grapes.server.db.datamodel
Class DbCredential

java.lang.Object
  extended by org.axway.grapes.server.db.datamodel.DbCredential

public class DbCredential
extends Object

Database Credential

Class that represent Grapes credentials that are stored in the database. Passwords have to be encrypted.

Author:
jdcoffre

Nested Class Summary
static class DbCredential.AvailableRoles
          All the available role for Grapes
 
Field Summary
static String DATA_MODEL_VERSION
           
static String PASSWORD_FIELD
           
static String ROLES_FIELD
           
 
Constructor Summary
DbCredential()
           
 
Method Summary
 void addRole(DbCredential.AvailableRoles role)
           
 String getDataModelVersion()
           
 String getPassword()
           
static DbCredential.AvailableRoles getRole(String roleParam)
           
 List<DbCredential.AvailableRoles> getRoles()
           
 String getUser()
           
 boolean isHealthy()
           
 void removeRole(DbCredential.AvailableRoles role)
           
 void setDataModelVersion(String newVersion)
           
 void setPassword(String password)
           
 void setRoles(List<DbCredential.AvailableRoles> roles)
           
 void setUser(String user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_MODEL_VERSION

public static final String DATA_MODEL_VERSION
See Also:
Constant Field Values

PASSWORD_FIELD

public static final String PASSWORD_FIELD
See Also:
Constant Field Values

ROLES_FIELD

public static final String ROLES_FIELD
See Also:
Constant Field Values
Constructor Detail

DbCredential

public DbCredential()
Method Detail

setDataModelVersion

public void setDataModelVersion(String newVersion)

getDataModelVersion

public String getDataModelVersion()

getUser

public String getUser()

setUser

public void setUser(String user)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getRoles

public List<DbCredential.AvailableRoles> getRoles()

setRoles

public void setRoles(List<DbCredential.AvailableRoles> roles)

addRole

public void addRole(DbCredential.AvailableRoles role)

removeRole

public void removeRole(DbCredential.AvailableRoles role)

isHealthy

public boolean isHealthy()

getRole

public static DbCredential.AvailableRoles getRole(String roleParam)


Copyright © 2014. All Rights Reserved.