public final class BearerTokenCredential extends Object implements Credential
Credential
that usually holds a bearer security token.NO_CREDENTIALS
Constructor and Description |
---|
BearerTokenCredential(String token)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
BearerTokenCredential |
clone()
Creates and returns a copy of this
Credential . |
boolean |
equals(Object obj) |
String |
getToken()
Get the bearer security token.
|
int |
hashCode() |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
canVerify, canVerify, castAndApply, castAndApply, castAndApply, castAs, castAs, castAs, fromKeyStoreEntry, matches, matches, matches, verify, verify
public BearerTokenCredential(String token)
token
- the bearer security token (must not be null
)public String getToken()
public BearerTokenCredential clone()
Credential
Credential
.clone
in interface Credential
clone
in class Object
Credential
.Copyright © 2020 JBoss by Red Hat. All rights reserved.