Class P12ServiceAccountConfig
java.lang.Object
com.google.jenkins.plugins.credentials.oauth.ServiceAccountConfig
com.google.jenkins.plugins.credentials.oauth.P12ServiceAccountConfig
- All Implemented Interfaces:
Describable<ServiceAccountConfig>
,Serializable
Provides authentication mechanism for a service account by setting a service account email
address and P12 private key file.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Descriptor for P12 service account authentication.Nested classes/interfaces inherited from class com.google.jenkins.plugins.credentials.oauth.ServiceAccountConfig
ServiceAccountConfig.Descriptor
-
Constructor Summary
ConstructorsConstructorDescriptionP12ServiceAccountConfig
(String emailAddress) P12ServiceAccountConfig
(String emailAddress, org.apache.commons.fileupload.FileItem p12KeyFileUpload, String prevP12KeyFile) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.org.apache.commons.fileupload.FileItem
Deprecated.com.cloudbees.plugins.credentials.SecretBytes
Do not use, required for UI.void
setFilename
(String filename) void
setP12KeyFileUpload
(org.apache.commons.fileupload.FileItem p12KeyFile) Deprecated.void
setSecretP12Key
(com.cloudbees.plugins.credentials.SecretBytes secretP12Key) Methods inherited from class com.google.jenkins.plugins.credentials.oauth.ServiceAccountConfig
getSecretBytesFromFile
-
Constructor Details
-
P12ServiceAccountConfig
- Parameters:
emailAddress
- The service account email address.- Since:
- 0.8
-
P12ServiceAccountConfig
@Deprecated public P12ServiceAccountConfig(String emailAddress, org.apache.commons.fileupload.FileItem p12KeyFileUpload, String prevP12KeyFile) Deprecated.For being able to load credentials created with versions < 0.8 and backwards compatibility with external callers.- Parameters:
emailAddress
- The service account email address.p12KeyFileUpload
- The uploaded p12 key file.prevP12KeyFile
- The path of the previous p12 key file.- Since:
- 0.3
-
-
Method Details
-
setP12KeyFileUpload
@Deprecated @DataBoundSetter public void setP12KeyFileUpload(org.apache.commons.fileupload.FileItem p12KeyFile) Deprecated.- Parameters:
p12KeyFile
- The uploaded p12 key file.
-
setFilename
- Parameters:
filename
- The previous p12 key file name.
-
setSecretP12Key
@DataBoundSetter public void setSecretP12Key(com.cloudbees.plugins.credentials.SecretBytes secretP12Key) - Parameters:
secretP12Key
- The previous p12 key file content.
-
getDescriptor
-
getEmailAddress
-
getFilename
- Returns:
- Original uploaded file name.
- Since:
- 0.7
-
getSecretP12Key
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @CheckForNull public com.cloudbees.plugins.credentials.SecretBytes getSecretP12Key()Do not use, required for UI.- Returns:
- The secret p12 key.
-
getP12KeyFile
Deprecated.- Returns:
- The path of the previous p12 key file.
-
getP12KeyFileUpload
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public org.apache.commons.fileupload.FileItem getP12KeyFileUpload()Deprecated.Do not use, required for UI.- Returns:
- The uploaded p12 key file.
-
getAccountId
- Specified by:
getAccountId
in classServiceAccountConfig
-
getPrivateKey
- Specified by:
getPrivateKey
in classServiceAccountConfig
-