Search in sources :

Example 1 with JWTInfoDTO

use of org.wso2.carbon.apimgt.rest.api.core.dto.JWTInfoDTO in project carbon-apimgt by wso2.

the class MappingUtil method toJWTInfoDTO.

/**
 * Converts RegistrationSummary JWT information into JWTInfoDTO
 *
 * @param registrationSummary the registration summary required by gateway
 * @return JWTInfoDTO
 */
private static JWTInfoDTO toJWTInfoDTO(RegistrationSummary registrationSummary) {
    JWTInfoDTO jwtInfoDTO = new JWTInfoDTO();
    jwtInfoDTO.enableJWTGeneration(registrationSummary.getJwtInfo().isEnableJWTGeneration());
    jwtInfoDTO.jwtHeader(registrationSummary.getJwtInfo().getJwtHeader());
    return jwtInfoDTO;
}
Also used : JWTInfoDTO(org.wso2.carbon.apimgt.rest.api.core.dto.JWTInfoDTO)

Aggregations

JWTInfoDTO (org.wso2.carbon.apimgt.rest.api.core.dto.JWTInfoDTO)1