All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fun.mike.azure.auth.AuthenticatorFactory Maven / Gradle / Ivy

The newest version!
package fun.mike.azure.auth;

public class AuthenticatorFactory {
    public static Authenticator build(String tenantId, String clientId, int jwksConnectTimeout, int jwksReadTimeout) {
        String metadataUrl = MetadataUrlBuilder.build(tenantId);
        String requiredIssuer = RequiredIssuerBuilder.build(tenantId);
        TokenValidator tokenValidator = TokenValidatorFactory.build(metadataUrl,
                                                                    requiredIssuer,
                                                                    clientId,
                                                                    jwksConnectTimeout,
                                                                    jwksReadTimeout);
        return new Authenticator(tokenValidator);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy