public class Secret extends Object
Private fields and getters used for immutability with defaults. We don't count on the Constructor with arguments due to de-serialization.
Modifier and Type | Class and Description |
---|---|
static interface |
Secret.LazyString |
Constructor and Description |
---|
Secret(long id,
String name,
String description,
Secret.LazyString encryptedSecret,
String checksum,
ApiDate createdAt,
String createdBy,
ApiDate updatedAt,
String updatedBy,
Map<String,String> metadata,
String type,
Map<String,String> generationOptions,
long expiry,
Long version) |
Modifier and Type | Method and Description |
---|---|
static int |
decodedLength(String secret)
Slightly hokey way of calculating the decoded-length without bothering to decode.
|
boolean |
equals(Object o) |
String |
getChecksum() |
ApiDate |
getCreatedAt() |
String |
getCreatedBy() |
String |
getDescription() |
String |
getDisplayName() |
long |
getExpiry() |
com.google.common.collect.ImmutableMap<String,String> |
getGenerationOptions() |
long |
getId() |
com.google.common.collect.ImmutableMap<String,String> |
getMetadata() |
String |
getName() |
String |
getSecret() |
Optional<String> |
getType() |
ApiDate |
getUpdatedAt() |
String |
getUpdatedBy() |
Optional<Long> |
getVersion() |
int |
hashCode() |
String |
toString() |
public Secret(long id, String name, @Nullable String description, Secret.LazyString encryptedSecret, String checksum, ApiDate createdAt, @Nullable String createdBy, ApiDate updatedAt, @Nullable String updatedBy, @Nullable Map<String,String> metadata, @Nullable String type, @Nullable Map<String,String> generationOptions, long expiry, @Nullable Long version)
public long getId()
public String getName()
public String getDisplayName()
public String getDescription()
public String getSecret()
public String getChecksum()
public ApiDate getCreatedAt()
public String getCreatedBy()
public ApiDate getUpdatedAt()
public String getUpdatedBy()
public com.google.common.collect.ImmutableMap<String,String> getGenerationOptions()
public long getExpiry()
public static int decodedLength(String secret)
Copyright © 2018 Walmart, Inc.. All rights reserved.