import { Observable, BehaviorSubject } from 'rxjs/Rx'; import { Keycloak } from './keycloak.core.service'; import 'rxjs/operator/map'; /** * Keycloak Authorization manager. * * Manager authorization headers and tokens to access to protected resources. */ export declare class KeycloakAuthorization { private keycloak; static initializedBehaviourSubject: BehaviorSubject; static initializedObs: Observable; config: any; rpt: string; /** * This method enables client applications to better integrate with resource servers protected by a Keycloak * policy enforcer. * * In this case, the resource server will respond with a 401 status code and a WWW-Authenticate header holding the * necessary information to ask a Keycloak server for authorization data using both UMA and Entitlement protocol, * depending on how the policy enforcer at the resource server was configured. */ authorize(wwwAuthenticateHeader: string): Observable; /** * Obtains all entitlements from a this Server based on a give resourceServerId. */ entitlement(resourceSeververId: string): Observable; constructor(keycloak: Keycloak); init(): void; }