Uses of Class
com.cloudbees.plugins.credentials.SecretBytes
-
Uses of SecretBytes in com.cloudbees.plugins.credentials
Modifier and TypeMethodDescriptionstatic SecretBytes
SecretBytes.decrypt
(byte[] data) Reverse operation ofgetEncryptedData()
.static SecretBytes
SecretBytes.fromBytes
(byte[] data) Deprecated.static SecretBytes
SecretBytes.fromRawBytes
(byte[] data) UnlikefromBytes(byte[])
this won't attempt to decrypt this as a secret.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.Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionCertificateCredentialsImpl.UploadedKeyStoreSource.getUploadedKeystore()
Returns the private key file name.ModifierConstructorDescriptionUploadedKeyStoreSource
(SecretBytes uploadedKeystore) Deprecated.UploadedKeyStoreSource
(org.apache.commons.fileupload.FileItem uploadedCertFile, SecretBytes uploadedKeystore) Constructor able to receive file directly
fromRawBytes(byte[])