public final class SecretValue
extends java.lang.Object
implements com.schibsted.security.strongbox.sdk.internal.encryption.BestEffortShred
Modifier and Type | Field and Description |
---|---|
Encoding |
encoding |
SecretType |
type |
Constructor and Description |
---|
SecretValue(byte[] secretValue,
Encoding encoding,
SecretType type) |
SecretValue(byte[] secretValue,
SecretType type) |
SecretValue(java.lang.String secretValue,
SecretType type) |
Modifier and Type | Method and Description |
---|---|
byte[] |
asByteArray() |
java.lang.String |
asString() |
void |
bestEffortShred() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public final SecretType type
public final Encoding encoding
public SecretValue(byte[] secretValue, Encoding encoding, SecretType type)
public SecretValue(byte[] secretValue, SecretType type)
public SecretValue(java.lang.String secretValue, SecretType type)
public byte[] asByteArray()
public java.lang.String asString()
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