Class StoredToken
- java.lang.Object
-
- com.microsoft.credentialstorage.model.StoredToken
-
- All Implemented Interfaces:
StoredSecret
public final class StoredToken extends Object implements StoredSecret
A security token, usually acquired by some authentication and identity services.
-
-
Constructor Summary
Constructors Constructor Description StoredToken(char[] value, StoredTokenType type)Creates a token object with a value and the specified type for a target identity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear the token value.booleanequals(Object o)Compares an object to thisStoredTokenfor equality.StoredTokenTypegetType()The type of the security token.char[]getValue()The raw contents of the token.inthashCode()Gets a hash code based on the contents of the token.
-
-
-
Constructor Detail
-
StoredToken
public StoredToken(char[] value, StoredTokenType type)Creates a token object with a value and the specified type for a target identity.- Parameters:
value- token valuetype- token type
-
-
Method Detail
-
getType
public StoredTokenType getType()
The type of the security token.- Returns:
- token type
-
getValue
public char[] getValue()
The raw contents of the token.- Returns:
- token value
-
clear
public void clear()
Clear the token value.- Specified by:
clearin interfaceStoredSecret
-
equals
public boolean equals(Object o)
Compares an object to thisStoredTokenfor equality.
-
-