com.cloudbees.plugins.credentials
Class BaseCredentials

java.lang.Object
  extended by com.cloudbees.plugins.credentials.BaseCredentials
All Implemented Interfaces:
Credentials, hudson.model.Describable<Credentials>, java.io.Serializable

public class BaseCredentials
extends java.lang.Object
implements Credentials

Base class for Credentials.

See Also:
Serialized Form

Constructor Summary
protected BaseCredentials()
          For deserialization, need a route to a no-args constructor for sub-classes
  BaseCredentials(CredentialsScope scope)
          Creates an instance with specific scope.
 
Method Summary
 CredentialsDescriptor getDescriptor()
          
 CredentialsScope getScope()
          Gets the scope of the credential.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseCredentials

protected BaseCredentials()
For deserialization, need a route to a no-args constructor for sub-classes


BaseCredentials

public BaseCredentials(CredentialsScope scope)
Creates an instance with specific scope.

Parameters:
scope - the scope.
Method Detail

getScope

public CredentialsScope getScope()
Gets the scope of the credential.

Specified by:
getScope in interface Credentials
Returns:
the scope of the credential.

getDescriptor

@NonNull
public CredentialsDescriptor getDescriptor()

Specified by:
getDescriptor in interface Credentials
Specified by:
getDescriptor in interface hudson.model.Describable<Credentials>


Copyright © 2004-2012. All Rights Reserved.