Class P12ServiceAccountConfig

    • Constructor Detail

      • P12ServiceAccountConfig

        @DataBoundConstructor
        public P12ServiceAccountConfig​(String emailAddress)
        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 Detail

      • setP12KeyFileUpload

        @Deprecated
        @DataBoundSetter
        public void setP12KeyFileUpload​(org.apache.commons.fileupload.FileItem p12KeyFile)
        Deprecated.
        Parameters:
        p12KeyFile - The uploaded p12 key file.
      • setFilename

        @DataBoundSetter
        public void setFilename​(String filename)
        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.
      • getEmailAddress

        public String getEmailAddress()
      • getFilename

        @CheckForNull
        public String 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
        public String 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.