com.novell.zos.jdl
Class Credential

java.lang.Object
  extended by com.novell.zos.jdl.Credential

public class Credential
extends java.lang.Object

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

Credential

public Credential()
Create an empty credential object


Credential

public Credential(java.lang.String name,
                  java.lang.String type,
                  java.lang.String user,
                  java.lang.String secret)
Create a credential object with specified values

Parameters:
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, generally a password
Method Detail

getName

public java.lang.String getName()
Retrieve the name field of this credential

Returns:
This credentials name

setName

public void setName(java.lang.String name)
Set the name of this credential

Parameters:
name - The id of this credential

getUser

public java.lang.String getUser()
Retrieve the user field of this credential

Returns:
The user string

setUser

public void setUser(java.lang.String user)
Set the user for this credential

Parameters:
user - The user string

getSecret

public java.lang.String getSecret()
Retrieve the secret field of this credential

Returns:
The secret associated with this user, generally a password

setSecret

public void setSecret(java.lang.String secret)
Set the secret field of this credential

Parameters:
secret - The secret associated with this user, generally a password

getType

public java.lang.String getType()
Get the type field of this credential

Returns:
The type of this credential; this may be None

setType

public void setType(java.lang.String type)
Set the type field of this credential

Parameters:
type - A string type used to group related credentials (e.g. amazon-ec2), None is a valid type


Copyright (c) 2011 Novell, Inc. All rights reserved.