Package com.sic.plugins.kpp.model
Class KPPKeychainCertificatePair
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<KPPKeychainCertificatePair>
-
- com.sic.plugins.kpp.model.KPPKeychainCertificatePair
-
- All Implemented Interfaces:
Describable<KPPKeychainCertificatePair>
,Serializable
public class KPPKeychainCertificatePair extends AbstractDescribableImpl<KPPKeychainCertificatePair> implements Serializable
Class represents a pair of a keychain and a selected certificate.- Author:
- Michael Bär
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KPPKeychainCertificatePair.DescriptorImpl
Descriptor of theKPPKeychainCertificatePair
.
-
Constructor Summary
Constructors Constructor Description KPPKeychainCertificatePair(String keychain, String codeSigningIdentity, String varPrefix)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCodeSigningIdentity()
Get code signing identity.String
getCodeSigningIdentityVariableName()
Get the variable name for the code signing identity variable that can be used in other build steps.String
getKeychain()
Get keychain.String
getKeychainFileName()
Get the keychain filename from the keychainString
getKeychainFilePath()
Get the filepath to the keychain stored inside the upload folder.static KPPKeychain
getKeychainFromString(String keychainString)
Get the keychain from a given string.String
getKeychainPasswordVariableName()
Get the variable name for the password variable that can be used in other build steps.String
getKeychainVariableName()
Get the variable name for the keychain variable that can be used in other build steps.String
getVariableNames()
Get variable names which can be used in other build steps.String
getVarPrefix()
Get variable prefix.-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
KPPKeychainCertificatePair
@DataBoundConstructor public KPPKeychainCertificatePair(String keychain, String codeSigningIdentity, String varPrefix)
Constructor- Parameters:
keychain
- keychain in the form filename and descriptioncodeSigningIdentity
- general name of the code signing identityvarPrefix
- variable prefix to use
-
-
Method Detail
-
getKeychain
public String getKeychain()
Get keychain.- Returns:
- keychain filename and description
-
getCodeSigningIdentity
public String getCodeSigningIdentity()
Get code signing identity.- Returns:
- general name of the code signing identity
-
getVarPrefix
public String getVarPrefix()
Get variable prefix.- Returns:
- prefix
-
getVariableNames
public String getVariableNames()
Get variable names which can be used in other build steps.- Returns:
- keychain, password and code signing identity variable name
-
getKeychainVariableName
public String getKeychainVariableName()
Get the variable name for the keychain variable that can be used in other build steps.- Returns:
- variable name in the form varprefix and variable name
-
getKeychainPasswordVariableName
public String getKeychainPasswordVariableName()
Get the variable name for the password variable that can be used in other build steps.- Returns:
- variable name in the form varprefix and variable name
-
getCodeSigningIdentityVariableName
public String getCodeSigningIdentityVariableName()
Get the variable name for the code signing identity variable that can be used in other build steps.- Returns:
- variable name in the form varprefix and variable name
-
getKeychainFilePath
public String getKeychainFilePath()
Get the filepath to the keychain stored inside the upload folder.- Returns:
- file path
-
getKeychainFileName
public String getKeychainFileName()
Get the keychain filename from the keychain- Returns:
- filename
-
getKeychainFromString
public static KPPKeychain getKeychainFromString(String keychainString)
Get the keychain from a given string. The string has to start with the keychain filename.- Returns:
- keychain
-
-