Skip to main content

BearerTokenCredentials

//d1-client-java/io.cybercrypt.d1.credentials/BearerTokenCredentials

BearerTokenCredentials

[d1]\ public class BearerTokenCredentials

CallCredentials to use when providing a raw token.

Constructors

BearerTokenCredentials[d1]
public voidBearerTokenCredentials(Stringtoken)
Creates an instance of CallCredentials that is later propagated to server via request metadata for each request.

Functions

NameSummary
applyRequestMetadata[d1]
public voidapplyRequestMetadata(RequestInforequestInfo, Executorexecutor, MetadataAppliermetadataApplier)
getToken[d1]
public StringgetToken()
Get the bearer token.
thisUsesUnstableApi[d1]
public voidthisUsesUnstableApi()

Properties

NameSummary
token[d1]
public final Stringtoken