com.browserstack.automate.ci.jenkins
Class BrowserStackCredentials

java.lang.Object
  extended by com.cloudbees.plugins.credentials.BaseCredentials
      extended by com.browserstack.automate.ci.jenkins.BrowserStackCredentials
All Implemented Interfaces:
com.cloudbees.plugins.credentials.common.IdCredentials, com.cloudbees.plugins.credentials.common.StandardCredentials, com.cloudbees.plugins.credentials.Credentials, hudson.ExtensionPoint, hudson.model.Describable<com.cloudbees.plugins.credentials.Credentials>, Serializable

@NameWith(value=BrowserStackCredentials.NameProvider.class)
public class BrowserStackCredentials
extends com.cloudbees.plugins.credentials.BaseCredentials
implements com.cloudbees.plugins.credentials.common.StandardCredentials

See Also:
Serialized Form

Nested Class Summary
static class BrowserStackCredentials.DescriptorImpl
           
static class BrowserStackCredentials.NameProvider
           
 
Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
com.cloudbees.plugins.credentials.common.IdCredentials.Helpers
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
BrowserStackCredentials(String id, String description, String username, String accesskey)
           
 
Method Summary
static List<BrowserStackCredentials> availableCredentials(hudson.model.AbstractItem abstractItem)
           
 boolean equals(Object o)
           
 hudson.util.Secret getAccesskey()
           
static BrowserStackCredentials getCredentials(hudson.model.AbstractItem buildItem, String credentialsId)
           
 String getDecryptedAccesskey()
           
 String getDescription()
           
 String getId()
           
 String getUsername()
           
 boolean hasAccesskey()
           
 int hashCode()
           
 boolean hasUsername()
           
static hudson.util.FormValidation testAuthentication(String username, String accesskey)
           
 
Methods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScope
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.cloudbees.plugins.credentials.Credentials
getDescriptor, getScope
 

Constructor Detail

BrowserStackCredentials

@DataBoundConstructor
public BrowserStackCredentials(String id,
                                                    String description,
                                                    String username,
                                                    String accesskey)
Method Detail

getUsername

@Exported
public String getUsername()

hasUsername

public boolean hasUsername()

getAccesskey

@Exported
public hudson.util.Secret getAccesskey()

getDecryptedAccesskey

public String getDecryptedAccesskey()

hasAccesskey

public boolean hasAccesskey()

getDescription

@NonNull
@Exported
public String getDescription()
Specified by:
getDescription in interface com.cloudbees.plugins.credentials.common.StandardCredentials

getId

@NonNull
@Exported
public String getId()
Specified by:
getId in interface com.cloudbees.plugins.credentials.common.IdCredentials

equals

public final boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

testAuthentication

public static hudson.util.FormValidation testAuthentication(String username,
                                                            String accesskey)

getCredentials

public static BrowserStackCredentials getCredentials(hudson.model.AbstractItem buildItem,
                                                     String credentialsId)

availableCredentials

public static List<BrowserStackCredentials> availableCredentials(hudson.model.AbstractItem abstractItem)


Copyright © 2004-2016. All Rights Reserved.