use of org.wso2.carbon.identity.oauth.dto.OAuthConsumerAppDTO in project carbon-apimgt by wso2.
the class SessionDataPublisherImpl method buildConsumerAppDTO.
/**
* Method to build a OAuthConsumerAppDTO type object
* @param appDO required param
* @return OAuthConsumerAppDTO type object
*/
private OAuthConsumerAppDTO buildConsumerAppDTO(OAuthAppDO appDO) {
OAuthConsumerAppDTO dto = new OAuthConsumerAppDTO();
dto.setApplicationName(appDO.getApplicationName());
dto.setCallbackUrl(appDO.getCallbackUrl());
dto.setOauthConsumerKey(appDO.getOauthConsumerKey());
dto.setOauthConsumerSecret(appDO.getOauthConsumerSecret());
dto.setOAuthVersion(appDO.getOauthVersion());
dto.setGrantTypes(appDO.getGrantTypes());
dto.setScopeValidators(appDO.getScopeValidators());
dto.setUsername(appDO.getAppOwner().toFullQualifiedUsername());
dto.setState(appDO.getState());
dto.setPkceMandatory(appDO.isPkceMandatory());
dto.setPkceSupportPlain(appDO.isPkceSupportPlain());
dto.setUserAccessTokenExpiryTime(appDO.getUserAccessTokenExpiryTime());
dto.setApplicationAccessTokenExpiryTime(appDO.getApplicationAccessTokenExpiryTime());
dto.setRefreshTokenExpiryTime(appDO.getRefreshTokenExpiryTime());
dto.setIdTokenExpiryTime(appDO.getIdTokenExpiryTime());
dto.setAudiences(appDO.getAudiences());
dto.setRequestObjectSignatureValidationEnabled(appDO.isRequestObjectSignatureValidationEnabled());
dto.setIdTokenEncryptionEnabled(appDO.isIdTokenEncryptionEnabled());
dto.setIdTokenEncryptionAlgorithm(appDO.getIdTokenEncryptionAlgorithm());
dto.setIdTokenEncryptionMethod(appDO.getIdTokenEncryptionMethod());
dto.setBackChannelLogoutUrl(appDO.getBackChannelLogoutUrl());
dto.setTokenType(appDO.getTokenType());
dto.setBypassClientCredentials(appDO.isBypassClientCredentials());
return dto;
}
Aggregations