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 ClassesNested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
com.cloudbees.plugins.credentials.common.IdCredentials.HelpersNested classes/interfaces inherited from interface au.com.rayh.KeychainPasswordAndPath
KeychainPasswordAndPath.NameProviderNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
com.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<KeychainPasswordAndPathImpl> Add keychain to search path.macOS Keychain path.booleanAdd keyc hain to search path.voidsetInSearchPath(String inSearchPath) voidsetKeychainPath(String keychainPath) voidsetPassword(Secret password) Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
equals, getDescription, getId, hashCodeMethods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScopeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, getDescriptor, getScopeMethods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
getIdMethods 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 scopeid- the ID ornullto generate a new one.description- the description.keychainPath- the Keychain path.password- the password.inSearchPath- flag for keychain in search path.
-
-
Method Details
-
getPassword
- Specified by:
getPasswordin interfaceKeychainPasswordAndPath- Specified by:
getPasswordin interfacecom.cloudbees.plugins.credentials.common.PasswordCredentials
-
setPassword
-
getKeychainPath
macOS Keychain path.- Specified by:
getKeychainPathin interfaceKeychainPasswordAndPath- Returns:
- full path for macOS keychain
-
setKeychainPath
-
getInSearchPath
Add keychain to search path.- Specified by:
getInSearchPathin interfaceKeychainPasswordAndPath- Returns:
- inSearchPath by String.
-
setInSearchPath
-
isInSearchPath
public boolean isInSearchPath()Add keyc hain to search path.- Specified by:
isInSearchPathin interfaceKeychainPasswordAndPath- Returns:
- check is inSearchPath equals "true".
-
getAllKeycainInfo
-