Interface UofClientAuthentication.PrivateKeyJwtData.Builder
- All Known Implementing Classes:
UofClientAuthenticationImpl.PrivateKeyJwtDataImpl.BuilderImpl
- Enclosing interface:
- UofClientAuthentication.PrivateKeyJwtData
public static interface UofClientAuthentication.PrivateKeyJwtData.Builder
Builder interface for creating PrivateKeyJwtData instances.
-
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.
-
Method Details
-
setSigningKeyId
Sets the signing key identifier for JWT authentication.- Parameters:
signingKeyId- the signing key identifier, must not be null or empty- Returns:
- this builder instance for method chaining
-
setClientId
Sets the client identifier for JWT authentication.- Parameters:
clientId- the client identifier, must not be null or empty- Returns:
- this builder instance for method chaining
-
setPrivateKey
Sets 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.
- Parameters:
privateKey- the private key for JWT signing, must not be null- Returns:
- this builder instance for method chaining
-
build
Builds and returns a configured PrivateKeyJwtData instance.- Returns:
- the configured PrivateKeyJwtData authentication instance
-