
com.tngtech.keycloakmock.impl.dagger.SignatureComponent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mock Show documentation
Show all versions of mock Show documentation
Base module of keycloak-mock
The newest version!
package com.tngtech.keycloakmock.impl.dagger;
import com.tngtech.keycloakmock.impl.TokenGenerator;
import dagger.BindsInstance;
import dagger.Component;
import java.security.KeyStore;
import java.security.PublicKey;
import java.time.Duration;
import java.util.List;
import javax.inject.Named;
import javax.inject.Singleton;
@Component(modules = KeyModule.class)
@Singleton
public interface SignatureComponent {
// Note that while this is currently the same keystore used for storing the signing key-pair,
// this is just a coincidence. It is provided here only to allow setting up a self-signed TLS
// endpoint with a separate key-pair.
KeyStore keyStore();
PublicKey publicKey();
@Named("keyId")
String keyId();
TokenGenerator tokenGenerator();
@Component.Builder
abstract class Builder {
@BindsInstance
public abstract Builder defaultScopes(@Named("scopes") List defaultScopes);
@BindsInstance
public abstract Builder defaultTokenLifespan(Duration defaultTokenLifespan);
public abstract SignatureComponent build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy