@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SyntheticsBasicAuthJWT extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_ADD_CLAIMS |
static String |
JSON_PROPERTY_ALGORITHM |
static String |
JSON_PROPERTY_EXPIRES_IN |
static String |
JSON_PROPERTY_HEADER |
static String |
JSON_PROPERTY_PAYLOAD |
static String |
JSON_PROPERTY_SECRET |
static String |
JSON_PROPERTY_TOKEN_PREFIX |
static String |
JSON_PROPERTY_TYPE |
boolean |
unparsed |
| Constructor and Description |
|---|
SyntheticsBasicAuthJWT() |
SyntheticsBasicAuthJWT(SyntheticsBasicAuthJWTAlgorithm algorithm,
String payload,
String secret,
SyntheticsBasicAuthJWTType type) |
| Modifier and Type | Method and Description |
|---|---|
SyntheticsBasicAuthJWT |
addClaims(SyntheticsBasicAuthJWTAddClaims addClaims) |
SyntheticsBasicAuthJWT |
algorithm(SyntheticsBasicAuthJWTAlgorithm algorithm) |
boolean |
equals(Object o)
Return true if this SyntheticsBasicAuthJWT object is equal to o.
|
SyntheticsBasicAuthJWT |
expiresIn(Long expiresIn) |
SyntheticsBasicAuthJWTAddClaims |
getAddClaims()
Standard JWT claims to automatically inject.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
SyntheticsBasicAuthJWTAlgorithm |
getAlgorithm()
Algorithm to use for the JWT authentication.
|
Long |
getExpiresIn()
Token time-to-live in seconds.
|
String |
getHeader()
Custom JWT header as a JSON string.
|
String |
getPayload()
JWT claims as a JSON string.
|
String |
getSecret()
Signing key for the JWT authentication.
|
String |
getTokenPrefix()
Prefix added before the token in the
Authorization header. |
SyntheticsBasicAuthJWTType |
getType()
The type of authentication to use when performing the test.
|
int |
hashCode() |
SyntheticsBasicAuthJWT |
header(String header) |
SyntheticsBasicAuthJWT |
payload(String payload) |
SyntheticsBasicAuthJWT |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
SyntheticsBasicAuthJWT |
secret(String secret) |
void |
setAddClaims(SyntheticsBasicAuthJWTAddClaims addClaims) |
void |
setAlgorithm(SyntheticsBasicAuthJWTAlgorithm algorithm) |
void |
setExpiresIn(Long expiresIn) |
void |
setHeader(String header) |
void |
setPayload(String payload) |
void |
setSecret(String secret) |
void |
setTokenPrefix(String tokenPrefix) |
void |
setType(SyntheticsBasicAuthJWTType type) |
SyntheticsBasicAuthJWT |
tokenPrefix(String tokenPrefix) |
String |
toString() |
SyntheticsBasicAuthJWT |
type(SyntheticsBasicAuthJWTType type) |
public boolean unparsed
public static final String JSON_PROPERTY_ADD_CLAIMS
public static final String JSON_PROPERTY_ALGORITHM
public static final String JSON_PROPERTY_EXPIRES_IN
public static final String JSON_PROPERTY_HEADER
public static final String JSON_PROPERTY_PAYLOAD
public static final String JSON_PROPERTY_SECRET
public static final String JSON_PROPERTY_TOKEN_PREFIX
public static final String JSON_PROPERTY_TYPE
public SyntheticsBasicAuthJWT()
public SyntheticsBasicAuthJWT(SyntheticsBasicAuthJWTAlgorithm algorithm, String payload, String secret, SyntheticsBasicAuthJWTType type)
public SyntheticsBasicAuthJWT addClaims(SyntheticsBasicAuthJWTAddClaims addClaims)
@Nullable public SyntheticsBasicAuthJWTAddClaims getAddClaims()
public void setAddClaims(SyntheticsBasicAuthJWTAddClaims addClaims)
public SyntheticsBasicAuthJWT algorithm(SyntheticsBasicAuthJWTAlgorithm algorithm)
public SyntheticsBasicAuthJWTAlgorithm getAlgorithm()
public void setAlgorithm(SyntheticsBasicAuthJWTAlgorithm algorithm)
public SyntheticsBasicAuthJWT expiresIn(Long expiresIn)
@Nullable public Long getExpiresIn()
public void setExpiresIn(Long expiresIn)
public SyntheticsBasicAuthJWT header(String header)
@Nullable public String getHeader()
public void setHeader(String header)
public SyntheticsBasicAuthJWT payload(String payload)
public String getPayload()
public void setPayload(String payload)
public SyntheticsBasicAuthJWT secret(String secret)
public String getSecret()
HS256 or the
private key (PEM format) for RS256 and ES256.public void setSecret(String secret)
public SyntheticsBasicAuthJWT tokenPrefix(String tokenPrefix)
@Nullable public String getTokenPrefix()
Authorization header. Defaults to
Bearer.public void setTokenPrefix(String tokenPrefix)
public SyntheticsBasicAuthJWT type(SyntheticsBasicAuthJWTType type)
public SyntheticsBasicAuthJWTType getType()
public void setType(SyntheticsBasicAuthJWTType type)
public SyntheticsBasicAuthJWT putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2026. All rights reserved.