/** * @return * @see org.mitre.oauth2.model.ClientDetailsEntity#getAuthorizedGrantTypes() */ public Set<String> getAuthorizedGrantTypes() { return client.getAuthorizedGrantTypes(); } /**
/** * @return the allowRefresh */ @Transient public boolean isAllowRefresh() { if (grantTypes != null) { return getAuthorizedGrantTypes().contains("refresh_token"); } else { return false; // if there are no grants, we can't be refreshing them, can we? } }
/** * Make sure the client has the appropriate scope and grant type. * @param client */ private void ensureRefreshTokenConsistency(ClientDetailsEntity client) { if (client.getAuthorizedGrantTypes().contains("refresh_token") || client.getScope().contains(SystemScopeService.OFFLINE_ACCESS)) { client.getScope().add(SystemScopeService.OFFLINE_ACCESS); client.getAuthorizedGrantTypes().add("refresh_token"); } }
Collection<String> authorizedGrantTypes = client.getAuthorizedGrantTypes(); if (authorizedGrantTypes != null && !authorizedGrantTypes.isEmpty() && !authorizedGrantTypes.contains(DeviceTokenGranter.GRANT_TYPE)) {
/** * Make sure the client has the appropriate scope and grant type. * @param client */ private void ensureRefreshTokenConsistency(ClientDetailsEntity client) { if (client.getAuthorizedGrantTypes().contains("refresh_token") || client.getScope().contains(SystemScopeService.OFFLINE_ACCESS)) { client.getScope().add(SystemScopeService.OFFLINE_ACCESS); client.getAuthorizedGrantTypes().add("refresh_token"); } }
Collection<String> authorizedGrantTypes = client.getAuthorizedGrantTypes(); if (authorizedGrantTypes != null && !authorizedGrantTypes.isEmpty() && !authorizedGrantTypes.contains(DeviceTokenGranter.GRANT_TYPE)) {