@Introspected
public class Secret
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPAQUE_SECRET_TYPE |
Constructor and Description |
---|
Secret() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getData() |
Metadata |
getMetadata() |
java.lang.String |
getType() |
void |
setData(java.util.Map<java.lang.String,java.lang.String> data) |
void |
setMetadata(Metadata metadata) |
void |
setType(java.lang.String type) |
java.lang.String |
toString() |
public static final java.lang.String OPAQUE_SECRET_TYPE
public Metadata getMetadata()
public void setMetadata(Metadata metadata)
metadata
- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadatapublic java.util.Map<java.lang.String,java.lang.String> getData()
public void setData(java.util.Map<java.lang.String,java.lang.String> data)
data
- Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The
serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string)
data value here. Described in https://tools.ietf.org/html/rfc4648#section-4public java.lang.String getType()
public void setType(java.lang.String type)
type
- The secret type. Only "Opaque" supportedpublic java.lang.String toString()
toString
in class java.lang.Object