com.ziqni.admin.sdk.configuration.IdentityAuthorization Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ziqni-admin-sdk Show documentation
Show all versions of ziqni-admin-sdk Show documentation
ZIQNI Admin SDK Java Client
/*
* Copyright (c) 2022. ZIQNI LTD registered in England and Wales, company registration number-09693684
*/
package com.ziqni.admin.sdk.configuration;
import org.keycloak.admin.client.Keycloak;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class IdentityAuthorization {
private static final Logger logger = LoggerFactory.getLogger(IdentityAuthorization.class);
public static String getAccessTokenString(Keycloak keycloak) {
logger.debug("Is identity client closed [{}]", keycloak.isClosed());
return keycloak.tokenManager().getAccessTokenString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy