Package au.com.rayh

Class KeychainPasswordAndPathImpl

java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
au.com.rayh.KeychainPasswordAndPathImpl
All Implemented Interfaces:
KeychainPasswordAndPath, com.cloudbees.plugins.credentials.common.IdCredentials, com.cloudbees.plugins.credentials.common.PasswordCredentials, com.cloudbees.plugins.credentials.common.StandardCredentials, com.cloudbees.plugins.credentials.Credentials, ExtensionPoint, Describable<com.cloudbees.plugins.credentials.Credentials>, Serializable

public class KeychainPasswordAndPathImpl extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials implements KeychainPasswordAndPath
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 

    Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials

    com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    ExtensionPoint.LegacyInstancesAreScopedToHudson

    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 au.com.rayh.KeychainPasswordAndPath

    KeychainPasswordAndPath.NameProvider

    Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials

    com.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider
  • Constructor Summary

    Constructors
    Constructor
    Description
    KeychainPasswordAndPathImpl(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String keychainPath, String password, String inSearchPath)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Add keychain to search path.
    macOS Keychain path.
    boolean
    Add keyc hain to search path.
    void
    setInSearchPath(String inSearchPath)
     
    void
    setKeychainPath(String keychainPath)
     
    void
    setPassword(Secret password)
     

    Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials

    equals, getDescription, getId, hashCode

    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

    forRun, getDescriptor, getScope

    Methods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials

    getId

    Methods inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials

    getDescription
  • Constructor Details

    • KeychainPasswordAndPathImpl

      @DataBoundConstructor public KeychainPasswordAndPathImpl(@CheckForNull com.cloudbees.plugins.credentials.CredentialsScope scope, @CheckForNull String id, @CheckForNull String description, @CheckForNull String keychainPath, @CheckForNull String password, @CheckForNull String inSearchPath)
      Constructor.
      Parameters:
      scope - the credentials scope
      id - the ID or null to generate a new one.
      description - the description.
      keychainPath - the Keychain path.
      password - the password.
      inSearchPath - flag for keychain in search path.
  • Method Details

    • getPassword

      public Secret getPassword()
      Specified by:
      getPassword in interface KeychainPasswordAndPath
      Specified by:
      getPassword in interface com.cloudbees.plugins.credentials.common.PasswordCredentials
    • setPassword

      @DataBoundSetter public void setPassword(Secret password)
    • getKeychainPath

      @NonNull public String getKeychainPath()
      macOS Keychain path.
      Specified by:
      getKeychainPath in interface KeychainPasswordAndPath
      Returns:
      full path for macOS keychain
    • setKeychainPath

      @DataBoundSetter public void setKeychainPath(String keychainPath)
    • getInSearchPath

      public String getInSearchPath()
      Add keychain to search path.
      Specified by:
      getInSearchPath in interface KeychainPasswordAndPath
      Returns:
      inSearchPath by String.
    • setInSearchPath

      @DataBoundSetter public void setInSearchPath(String inSearchPath)
    • isInSearchPath

      public boolean isInSearchPath()
      Add keyc hain to search path.
      Specified by:
      isInSearchPath in interface KeychainPasswordAndPath
      Returns:
      check is inSearchPath equals "true".
    • getAllKeycainInfo

      public static List<KeychainPasswordAndPathImpl> getAllKeycainInfo()