com.cloudbees.plugins.credentials
Interface Credentials

All Superinterfaces:
hudson.model.Describable<Credentials>, java.io.Serializable
All Known Implementing Classes:
BaseCredentials

public interface Credentials
extends hudson.model.Describable<Credentials>, java.io.Serializable

A generic type of credentials. In general please extend from BaseCredentials rather than implement this interface. The interface is provided:

  1. To allow for orthogonal traits to be built up in interfaces that extend credentials, e.g. username/password vs username/ssh-key vs email/password - a single credentials impl could provide all four fields and different credentials consumers might request the different flavours
  2. In order to facility cases where it is just not possible to change the base class when retrofitting support for credentials into an existing plugin.


Method Summary
 CredentialsDescriptor getDescriptor()
          
 CredentialsScope getScope()
          Gets the scope of the credential.
 

Method Detail

getScope

CredentialsScope getScope()
Gets the scope of the credential.

Returns:
the scope of the credential.

getDescriptor

@NonNull
CredentialsDescriptor getDescriptor()

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


Copyright © 2004-2012. All Rights Reserved.