Package com.atlassian.secrets.api
Class SealedSecretFormat
java.lang.Object
com.atlassian.secrets.api.SealedSecretFormat
Class to manage the serialization format for
SealedSecret objects.
A SealedSecretFormat.SerializationFormat instance is used to transform
SealedSecret objects to and from String format.
Allows the SealedSecret serialization format to be decoupled
from the interface definition.- Since:
- 4.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic interfaceAn interface which is used to convert betweenSealedSecretobjects andStrings. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidSet the serialization format to use across the application.
-
Field Details
-
PREFIX_PATTERN
-
-
Constructor Details
-
SealedSecretFormat
public SealedSecretFormat()
-
-
Method Details
-
setFormat
Set the serialization format to use across the application.- Parameters:
format- used to serialize and deserializeSealedSecretobjects.
-
getFormat
-