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

com.microsoft.bot.connector.customizations.ClaimsIdentityImpl Maven / Gradle / Ivy

The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.microsoft.bot.connector.customizations;

import java.util.HashMap;
import java.util.Map;

public class ClaimsIdentityImpl implements ClaimsIdentity {
    private String issuer;
    private Map claims;

    public ClaimsIdentityImpl() {
        this("", new HashMap<>());
    }

    public ClaimsIdentityImpl(String authType) {
        this(authType, new HashMap<>());
    }

    public ClaimsIdentityImpl(String authType, Map claims) {
        this.issuer = authType;
        this.claims = claims;
    }

    @Override
    public boolean isAuthenticated() {
        return this.issuer != null && !this.issuer.isEmpty();
    }

    @Override
    public Map claims() {
        return this.claims;
    }

    @Override
    public String getIssuer() {
        return issuer;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy