|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.zos.jdl.Credential
public class Credential
A representation of a credential stored in the CredentialManager
Fields contained in this object are:
name - The id of this credential
type - A string type used to group related credentials (e.g. amazon-ec2)
user - The user string
secret - The secret associated with this user
Constructor Summary | |
---|---|
Credential()
Create an empty credential object |
|
Credential(java.lang.String name,
java.lang.String type,
java.lang.String user,
java.lang.String secret)
Create a credential object with specified values |
Method Summary | |
---|---|
java.lang.String |
getName()
Retrieve the name field of this credential |
java.lang.String |
getSecret()
Retrieve the secret field of this credential |
java.lang.String |
getType()
Get the type field of this credential |
java.lang.String |
getUser()
Retrieve the user field of this credential |
void |
setName(java.lang.String name)
Set the name of this credential |
void |
setSecret(java.lang.String secret)
Set the secret field of this credential |
void |
setType(java.lang.String type)
Set the type field of this credential |
void |
setUser(java.lang.String user)
Set the user for this credential |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Credential()
public Credential(java.lang.String name, java.lang.String type, java.lang.String user, java.lang.String secret)
name
- The id of this credentialtype
- A string type used to group related credentials (e.g. amazon-ec2)user
- The user stringsecret
- The secret associated with this user, generally a passwordMethod Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The id of this credentialpublic java.lang.String getUser()
public void setUser(java.lang.String user)
user
- The user stringpublic java.lang.String getSecret()
public void setSecret(java.lang.String secret)
secret
- The secret associated with this user, generally a passwordpublic java.lang.String getType()
public void setType(java.lang.String type)
type
- A string type used to group related credentials (e.g. amazon-ec2), None is a valid type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |