Uses of Class
com.cloudbees.plugins.credentials.SecretBytes
-
Packages that use SecretBytes Package Description com.cloudbees.plugins.credentials com.cloudbees.plugins.credentials.impl -
-
Uses of SecretBytes in com.cloudbees.plugins.credentials
Methods in com.cloudbees.plugins.credentials that return SecretBytes Modifier and Type Method Description SecretBytes
SecretBytes.StaplerConverterImpl. convert(Class type, Object value)
static SecretBytes
SecretBytes. decrypt(byte[] data)
Reverse operation ofgetEncryptedData()
.static SecretBytes
SecretBytes. fromBytes(byte[] data)
Attempts to treat the given bytes first as a cipher encrypted bytes, and if it doesn't work, treat the given bytes as the unencrypted secret value.static SecretBytes
SecretBytes. fromString(String data)
Attempts to treat the given bytes first as a cipher text, and if it doesn't work, treat the given string as the unencrypted BASE-64 encoded byte array.Methods in com.cloudbees.plugins.credentials with parameters of type SecretBytes Modifier and Type Method Description static byte[]
SecretBytes. getPlainData(SecretBytes s)
Works just likegetPlainData()
but avoids NPE when the secret is null.static String
SecretBytes. toString(SecretBytes s)
Works just liketoString()
but avoids NPE when the secret is null. -
Uses of SecretBytes in com.cloudbees.plugins.credentials.impl
Methods in com.cloudbees.plugins.credentials.impl that return SecretBytes Modifier and Type Method Description SecretBytes
CertificateCredentialsImpl.UploadedKeyStoreSource. getUploadedKeystore()
Returns the private key file name.SecretBytes
CertificateCredentialsImpl.UploadedKeyStoreSource.Upload. getUploadedKeystore()
Deprecated.Returns the content.Constructors in com.cloudbees.plugins.credentials.impl with parameters of type SecretBytes Constructor Description Upload(String divId, SecretBytes uploadedKeystore)
Deprecated.Our constructor.UploadedKeyStoreSource(SecretBytes uploadedKeystore)
Deprecated.UploadedKeyStoreSource(org.apache.commons.fileupload.FileItem uploadedCertFile, SecretBytes uploadedKeystore)
Constructor able to receive file directly
-