Package org.wildfly.security.credential
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 org.wildfly.security.credential.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 java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.credential.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
Get the bearer security token.- Returns:
- the bearer security token
-
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
public int hashCode() -
equals
-