public final class RawSecretEntry
extends java.lang.Object
implements com.schibsted.security.strongbox.sdk.internal.encryption.BestEffortShred
Modifier and Type | Field and Description |
---|---|
byte[] |
encryptedPayload |
java.util.Optional<java.time.ZonedDateTime> |
notAfter |
java.util.Optional<java.time.ZonedDateTime> |
notBefore |
SecretIdentifier |
secretIdentifier |
State |
state |
java.lang.Long |
version |
Constructor and Description |
---|
RawSecretEntry()
Deprecated.
|
RawSecretEntry(SecretIdentifier secretIdentifier,
long version,
State state,
java.util.Optional<java.time.ZonedDateTime> notBefore,
java.util.Optional<java.time.ZonedDateTime> notAfter,
byte[] encryptedPayload) |
Modifier and Type | Method and Description |
---|---|
void |
bestEffortShred() |
boolean |
equals(java.lang.Object obj) |
static RawSecretEntry |
fromJsonBlob(java.lang.String jsonBlob) |
int |
hashCode() |
byte[] |
sha1OfEncryptionPayload() |
java.lang.String |
toJsonBlob() |
java.lang.String |
toString() |
public SecretIdentifier secretIdentifier
public java.lang.Long version
public State state
public java.util.Optional<java.time.ZonedDateTime> notBefore
public java.util.Optional<java.time.ZonedDateTime> notAfter
public byte[] encryptedPayload
@Deprecated public RawSecretEntry()
public RawSecretEntry(SecretIdentifier secretIdentifier, long version, State state, java.util.Optional<java.time.ZonedDateTime> notBefore, java.util.Optional<java.time.ZonedDateTime> notAfter, byte[] encryptedPayload)
public java.lang.String toJsonBlob()
public static RawSecretEntry fromJsonBlob(java.lang.String jsonBlob)
public byte[] sha1OfEncryptionPayload()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void bestEffortShred()
bestEffortShred
in interface com.schibsted.security.strongbox.sdk.internal.encryption.BestEffortShred