Class UofClientAuthenticationImpl.PrivateKeyJwtDataImpl.BuilderImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.cfg.UofClientAuthenticationImpl.PrivateKeyJwtDataImpl.BuilderImpl
- All Implemented Interfaces:
UofClientAuthentication.PrivateKeyJwtData.Builder
- Enclosing class:
- UofClientAuthenticationImpl.PrivateKeyJwtDataImpl
public static class UofClientAuthenticationImpl.PrivateKeyJwtDataImpl.BuilderImpl
extends Object
implements UofClientAuthentication.PrivateKeyJwtData.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a configured PrivateKeyJwtData instance.setClientId(String clientId) Sets the client identifier for JWT authentication.setPrivateKey(PrivateKey privateKey) Sets the private key for JWT signing.setSigningKeyId(String signingKeyId) Sets the signing key identifier for JWT authentication.
-
Constructor Details
-
BuilderImpl
public BuilderImpl()
-
-
Method Details
-
setSigningKeyId
Description copied from interface:UofClientAuthentication.PrivateKeyJwtData.BuilderSets the signing key identifier for JWT authentication.- Specified by:
setSigningKeyIdin interfaceUofClientAuthentication.PrivateKeyJwtData.Builder- Parameters:
signingKeyId- the signing key identifier, must not be null or empty- Returns:
- this builder instance for method chaining
-
setClientId
Description copied from interface:UofClientAuthentication.PrivateKeyJwtData.BuilderSets the client identifier for JWT authentication.- Specified by:
setClientIdin interfaceUofClientAuthentication.PrivateKeyJwtData.Builder- Parameters:
clientId- the client identifier, must not be null or empty- Returns:
- this builder instance for method chaining
-
setPrivateKey
Description copied from interface:UofClientAuthentication.PrivateKeyJwtData.BuilderSets the private key for JWT signing.This private key will be used to digitally sign JWT tokens. The corresponding public key must be registered with the Sportradar authentication service.
- Specified by:
setPrivateKeyin interfaceUofClientAuthentication.PrivateKeyJwtData.Builder- Parameters:
privateKey- the private key for JWT signing, must not be null- Returns:
- this builder instance for method chaining
-
build
Description copied from interface:UofClientAuthentication.PrivateKeyJwtData.BuilderBuilds and returns a configured PrivateKeyJwtData instance.- Specified by:
buildin interfaceUofClientAuthentication.PrivateKeyJwtData.Builder- Returns:
- the configured PrivateKeyJwtData authentication instance
-