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

com.boozallen.aissemble.security.authorization.AissembleSecureTokenServiceClient Maven / Gradle / Ivy

The newest version!
package com.boozallen.aissemble.security.authorization;

/*-
 * #%L
 * aiSSEMBLE::Extensions::Security::Authzforce::Extensions::Security::Authzforce
 * %%
 * Copyright (C) 2021 Booz Allen
 * %%
 * This software package is licensed under the Booz Allen Public License. All Rights Reserved.
 * #L%
 */

import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jws;

/**
 * Interface for an aissemble token service client.
 */
public interface AissembleSecureTokenServiceClient {

    /**
     * Authenticates a user.
     * @param username
     * @param password
     * @return a token if authenticated successfully
     */
    public String authenticate(String username, String password);

    /**
     * Convert Json string to jwt.
     * @param token
     * @return a parsed token
     */
    public Jws parseToken(String token);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy