|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hyper9.uvapi.impls.BeanImpl
com.hyper9.uvapi.impls.UniqueBeanImpl<java.lang.Integer>
com.hyper9.vangaea.impls.beans.admin.AdminBeanImpl
com.hyper9.vangaea.impls.beans.admin.LinkedCredentialBeanImpl
public class LinkedCredentialBeanImpl
A bean describing a row in the tbl_linked_credentials table.
Field Summary |
---|
Fields inherited from class com.hyper9.vangaea.impls.beans.admin.AdminBeanImpl |
---|
conn, isDeleted, isDirty |
Constructor Summary | |
---|---|
LinkedCredentialBeanImpl()
The default constructor for serialization. |
|
LinkedCredentialBeanImpl(java.sql.Connection conn,
int id,
int userID,
int serverID,
java.lang.String userName,
java.lang.String passphrase,
java.lang.String certificate,
java.lang.String salt)
Initializes a new instance of the LinkedCredentialBeanImpl class. |
Method Summary | |
---|---|
static LinkedCredentialBean |
get(java.sql.Connection connection,
int userID,
int serverID)
Gets a credential linked to the given user and server IDs. |
java.lang.String |
getCertificate()
Gets the AES-encrypted certificate of this credential as a hex-formatted string. |
java.lang.String |
getPassphrase()
Gets the AES-encrypted passphrase of this credential as a hex-formatted string. |
java.lang.String |
getSalt()
Gets the salt used to encrypt this credential set as a hex-formatted string. |
ServerInformationBean |
getServer()
Gets the server linked to this credential. |
int |
getServerID()
Gets the ID of the server that this credential is linked to. |
UserBean |
getUser()
Gets the user linked to this credential. |
int |
getUserID()
Gets the ID of the user that this credential is linked to. |
java.lang.String |
getUserName()
Gets the AES-encrypted user name of this credential as a hex-formatted string. |
void |
setCertificate(java.lang.String toSet)
Sets the AES-encrypted certificate of this credential as a hex-formatted string. |
void |
setPassphrase(java.lang.String toSet)
Sets the AES-encrypted passphrase of this credential as a hex-formatted string. |
void |
setSalt(java.lang.String toSet)
Sets the salt used to encrypt this credential set as a hex-formatted string. |
void |
setServerID(int toSet)
Sets the ID of the server that this credential is linked to. |
void |
setUserID(int toSet)
Sets the ID of the user that this credential is linked to. |
void |
setUserName(java.lang.String toSet)
Gets the AES-encrypted user name of this credential as a hex-formatted string. |
Methods inherited from class com.hyper9.vangaea.impls.beans.admin.AdminBeanImpl |
---|
getConnection, isDeleted, isDirty |
Methods inherited from class com.hyper9.uvapi.impls.UniqueBeanImpl |
---|
getID, setID |
Methods inherited from class com.hyper9.uvapi.impls.BeanImpl |
---|
toString, toString, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.hyper9.vangaea.types.beans.admin.AdminBean |
---|
getConnection, isDeleted, isDirty |
Methods inherited from interface com.hyper9.common.beans.UniqueBean |
---|
getID, setID |
Methods inherited from interface com.hyper9.common.beans.Bean |
---|
toString, toString, toString, toString |
Constructor Detail |
---|
public LinkedCredentialBeanImpl()
public LinkedCredentialBeanImpl(java.sql.Connection conn, int id, int userID, int serverID, java.lang.String userName, java.lang.String passphrase, java.lang.String certificate, java.lang.String salt)
conn
- The underlying data connection.id
- The linked credential ID.userID
- The ID of the user linked to this credential.serverID
- The ID of the server linked to this credential.userName
- The AES-encrypted user name of this credential as a
hex-formatted string.passphrase
- The AES-encrypted passphrase of this credential as a
hex-formatted string.certificate
- The AES-encrypted certificate of this credential as a
hex-formatted string.salt
- The salt used to encrypt this credential set as a
hex-formatted string.Method Detail |
---|
public java.lang.String getCertificate()
LinkedCredentialBean
getCertificate
in interface LinkedCredentialBean
public java.lang.String getPassphrase()
LinkedCredentialBean
getPassphrase
in interface LinkedCredentialBean
public int getServerID()
LinkedCredentialBean
getServerID
in interface LinkedCredentialBean
public int getUserID()
LinkedCredentialBean
getUserID
in interface LinkedCredentialBean
public java.lang.String getUserName()
LinkedCredentialBean
getUserName
in interface LinkedCredentialBean
public void setCertificate(java.lang.String toSet)
LinkedCredentialBean
setCertificate
in interface LinkedCredentialBean
toSet
- The AES-encrypted certificate of this credential as a
hex-formatted string.public void setPassphrase(java.lang.String toSet)
LinkedCredentialBean
setPassphrase
in interface LinkedCredentialBean
toSet
- The AES-encrypted passphrase of this credential as a
hex-formatted string.public void setServerID(int toSet)
LinkedCredentialBean
setServerID
in interface LinkedCredentialBean
toSet
- The ID of the server that this credential is linked to.public void setUserID(int toSet)
LinkedCredentialBean
setUserID
in interface LinkedCredentialBean
toSet
- The ID of the user that this credential is linked to.public void setUserName(java.lang.String toSet)
LinkedCredentialBean
setUserName
in interface LinkedCredentialBean
toSet
- The AES-encrypted user name of this credential as a
hex-formatted string.public UserBean getUser() throws java.lang.Exception
LinkedCredentialBean
getUser
in interface LinkedCredentialBean
java.lang.Exception
- When an error occurs.public ServerInformationBean getServer() throws java.lang.Exception
LinkedCredentialBean
getServer
in interface LinkedCredentialBean
java.lang.Exception
- When an error occurs.public static LinkedCredentialBean get(java.sql.Connection connection, int userID, int serverID) throws java.sql.SQLException
connection
- The underlying data connection to use.userID
- The user ID to look for.serverID
- The server ID to look for.
java.sql.SQLException
- When a SQL error occurs.public java.lang.String getSalt()
LinkedCredentialBean
getSalt
in interface LinkedCredentialBean
public void setSalt(java.lang.String toSet)
LinkedCredentialBean
setSalt
in interface LinkedCredentialBean
toSet
- The salt used to encrypt this credential set as a
hex-formatted string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |