|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.di.util.RacfCredential
public class RacfCredential
This class represents a decrypted RACF password or passphrase envelope.
This envelope is encrypted in PKCS#7 and contains not only the password/passphrase but some additional information about its version, expiration, time of last change and language.
Example:
// Get password envelope bytes
passbytes = conn.getObject("racfpasswordenvelope");
// Decrypt password envelope
pass = system.getRacfCredentialObject(psssbytes, "key.jks", "recipient_pass", "recipient_alias",
"key_pass", "key.jks", "signer_pass", "signer_alias");
// Print password related information
task.logmsg("New Password--------> " + pass.toString());
task.logmsg("Expired-------------> " + pass.getExpired());
task.logmsg("Language------------> " + pass.getLanguage());
task.logmsg("PasswordString------> " + pass.getCredentialString());
task.logmsg("PasswordBytes-------> " + pass.getCredentialBytes());
task.logmsg("Version-------------> " + pass.getVersion());
task.logmsg("ChangeTime----------> " + pass.getChangeTime());
| Method Summary | |
|---|---|
java.lang.String |
dumpContents()
Prints the password/passphrase along with the additional provided information. |
java.lang.String |
getChangeTime()
Gets the time of last change of the credential. |
byte[] |
getCredentialBytes()
Gets the credential as a byte array. |
java.lang.String |
getCredentialString()
Gets the credential as a string. |
boolean |
getExpired()
Gets the expired flag. |
java.lang.String |
getLanguage()
|
int |
getVersion()
Gets the version. |
void |
setChangeTime(java.lang.String changeTime)
Sets the time of last change. |
void |
setCredential(byte[] credentialBytes)
Sets the credential. |
void |
setCredential(java.lang.String credential)
Sets the credential. |
void |
setExpired(boolean expired)
Sets the expired flag |
void |
setLanguage(java.lang.String language)
Sets the language field. |
void |
setVersion(int version)
Sets the version. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean getExpired()
true if the credential is expired; false
otherwise.public void setExpired(boolean expired)
expired - the new value of the expired flag.public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
language - The new language to setpublic java.lang.String getCredentialString()
public void setCredential(java.lang.String credential)
credential - The new credential to set.public byte[] getCredentialBytes()
public void setCredential(byte[] credentialBytes)
credentialBytes - The new credential to set in bytes.public int getVersion()
public void setVersion(int version)
version - The new version to set.public java.lang.String getChangeTime()
public void setChangeTime(java.lang.String changeTime)
changeTime - The new time to set.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String dumpContents()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||