Class BearerTokenCredential
java.lang.Object
org.wildfly.security.credential.BearerTokenCredential
- All Implemented Interfaces:
Cloneable, Credential
A
Credential that usually holds a bearer security token.- Author:
- Pedro Igor
-
Field Summary
Fields inherited from interface Credential
NO_CREDENTIALS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates and returns a copy of thisCredential.booleangetToken()Get the bearer security token.inthashCode()Methods inherited from class Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Credential
canVerify, canVerify, castAndApply, castAndApply, castAndApply, castAs, castAs, castAs, matches, matches, matches, verify, verify
-
Constructor Details
-
BearerTokenCredential
Construct a new instance.- Parameters:
token- the bearer security token (must not benull)
-
-
Method Details
-
getToken
-
clone
Description copied from interface:CredentialCreates and returns a copy of thisCredential.- Specified by:
clonein interfaceCredential- Overrides:
clonein classObject- Returns:
- a copy of this
Credential.
-
hashCode
-
equals
-