Package com.datadog.api.client.v1.model
Class SyntheticsBasicAuthJWT
java.lang.Object
com.datadog.api.client.v1.model.SyntheticsBasicAuthJWT
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SyntheticsBasicAuthJWT
extends Object
Object to handle JWT authentication when performing the test.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSyntheticsBasicAuthJWT(SyntheticsBasicAuthJWTAlgorithm algorithm, String payload, String secret, SyntheticsBasicAuthJWTType type) -
Method Summary
Modifier and TypeMethodDescriptionaddClaims(SyntheticsBasicAuthJWTAddClaims addClaims) algorithm(SyntheticsBasicAuthJWTAlgorithm algorithm) booleanReturn true if this SyntheticsBasicAuthJWT object is equal to o.Standard JWT claims to automatically inject.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Algorithm to use for the JWT authentication.Token time-to-live in seconds.Custom JWT header as a JSON string.JWT claims as a JSON string.Signing key for the JWT authentication.Prefix added before the token in theAuthorizationheader.getType()The type of authentication to use when performing the test.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAddClaims(SyntheticsBasicAuthJWTAddClaims addClaims) voidsetAlgorithm(SyntheticsBasicAuthJWTAlgorithm algorithm) voidsetExpiresIn(Long expiresIn) voidvoidsetPayload(String payload) voidvoidsetTokenPrefix(String tokenPrefix) voidtokenPrefix(String tokenPrefix) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ADD_CLAIMS
- See Also:
-
JSON_PROPERTY_ALGORITHM
- See Also:
-
JSON_PROPERTY_EXPIRES_IN
- See Also:
-
JSON_PROPERTY_HEADER
- See Also:
-
JSON_PROPERTY_PAYLOAD
- See Also:
-
JSON_PROPERTY_SECRET
- See Also:
-
JSON_PROPERTY_TOKEN_PREFIX
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
SyntheticsBasicAuthJWT
public SyntheticsBasicAuthJWT() -
SyntheticsBasicAuthJWT
public SyntheticsBasicAuthJWT(SyntheticsBasicAuthJWTAlgorithm algorithm, String payload, String secret, SyntheticsBasicAuthJWTType type)
-
-
Method Details
-
addClaims
-
getAddClaims
Standard JWT claims to automatically inject.- Returns:
- addClaims
-
setAddClaims
-
algorithm
-
getAlgorithm
Algorithm to use for the JWT authentication.- Returns:
- algorithm
-
setAlgorithm
-
expiresIn
-
getExpiresIn
Token time-to-live in seconds. minimum: 1- Returns:
- expiresIn
-
setExpiresIn
-
header
-
getHeader
Custom JWT header as a JSON string.- Returns:
- header
-
setHeader
-
payload
-
getPayload
JWT claims as a JSON string.- Returns:
- payload
-
setPayload
-
secret
-
getSecret
Signing key for the JWT authentication. Use the shared secret forHS256or the private key (PEM format) forRS256andES256.- Returns:
- secret
-
setSecret
-
tokenPrefix
-
getTokenPrefix
Prefix added before the token in theAuthorizationheader. Defaults toBearer.- Returns:
- tokenPrefix
-
setTokenPrefix
-
type
-
getType
The type of authentication to use when performing the test.- Returns:
- type
-
setType
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- SyntheticsBasicAuthJWT
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this SyntheticsBasicAuthJWT object is equal to o. -
hashCode
public int hashCode() -
toString
-