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

com.clouway.oauth2.token.IdTokenFactory Maven / Gradle / Ivy

package com.clouway.oauth2.token;

import com.clouway.oauth2.DateTime;
import com.clouway.oauth2.Identity;
import com.google.common.base.Optional;

/**
 * A class that builds JWT tokens using JJWT builder
 * 

* * @author Vasil Mitov * */ public interface IdTokenFactory { /** * Creates a new id token from the provided metadata. * * @param host that requested the token * @param clientId the client id * @param identity identity to which the token is issued to * @param ttl time to live for the token * @param instant the time at which the token was requested * @return an encoded id token */ Optional create(String host, String clientId, Identity identity, Long ttl, DateTime instant); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy