Package org.wildfly.security.evidence
Class BearerTokenEvidence
- java.lang.Object
-
- org.wildfly.security.evidence.BearerTokenEvidence
-
- All Implemented Interfaces:
Evidence
public final class BearerTokenEvidence extends Object implements Evidence
A piece of evidence that is comprised of a bearer security token.- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description BearerTokenEvidence(String token)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getToken()
Get the bearer security token.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.evidence.Evidence
castAndApply, castAndApply, castAs, castAs, getDecodedPrincipal, getDefaultPrincipal, getPrincipal, setDecodedPrincipal
-
-
-
-
Field Detail
-
token
private final String token
-
-
Constructor Detail
-
BearerTokenEvidence
public BearerTokenEvidence(String token)
Construct a new instance.- Parameters:
token
- the bearer security token (must not benull
)
-
-
Method Detail
-
getToken
public String getToken()
Get the bearer security token.- Returns:
- the bearer security token
-
-