private static boolean addonUsesJwtAuthentication(ShallowConnectAddonBean addon) { return null != addon.getAuthentication() && AuthenticationType.JWT.equals(addon.getAuthentication().getType()); }
private boolean addonUsesSymmetricSharedSecret(ShallowConnectAddonBean addonBean, SigningAlgorithm jwtAlgorithm) { AuthenticationBean authenticationBean = addonBean.getAuthentication(); return null != authenticationBean && addonUsesSymmetricSharedSecret(authenticationBean.getType(), jwtAlgorithm); }
@Override public void validate(final ShallowConnectAddonBean addon) throws InvalidDescriptorException { if (addon.getAuthentication().getType() == JWT && !hasInstalledCallback(addon)) { throw new InvalidDescriptorException("The add-on (" + addon.getKey() + ") requested authentication " + "but did not specify an installed lifecycle callback in its descriptor.", "connect.install.error.auth.with.no.installed.callback"); } }
@Override public void validate(final ShallowConnectAddonBean addon) throws InvalidDescriptorException { if (addon.getAuthentication().getType() == JWT && !hasInstalledCallback(addon)) { throw new InvalidDescriptorException("The add-on (" + addon.getKey() + ") requested authentication " + "but did not specify an installed lifecycle callback in its descriptor.", "connect.install.error.auth.with.no.installed.callback"); } }
public ConnectAddonBeanBuilder(ShallowConnectAddonBean defaultBean) { this.key = defaultBean.getKey(); this.name = defaultBean.getName(); this.version = defaultBean.getVersion(); this.apiVersion = defaultBean.getApiVersion(); this.description = defaultBean.getDescription(); this.vendor = defaultBean.getVendor(); this.links = defaultBean.getLinks(); this.lifecycle = defaultBean.getLifecycle(); this.baseUrl = defaultBean.getBaseUrl(); this.authentication = defaultBean.getAuthentication(); this.scopes = defaultBean.getScopes(); this.enableLicensing = defaultBean.getEnableLicensing(); }
public ConnectAddonBeanBuilder(ShallowConnectAddonBean defaultBean) { this.key = defaultBean.getKey(); this.dependencies = defaultBean.getDependencies(); this.name = defaultBean.getName(); this.version = defaultBean.getVersion(); this.apiVersion = defaultBean.getApiVersion(); this.description = defaultBean.getDescription(); this.vendor = defaultBean.getVendor(); this.links = defaultBean.getLinks(); this.lifecycle = defaultBean.getLifecycle(); this.baseUrl = defaultBean.getBaseUrl(); this.authentication = defaultBean.getAuthentication(); this.scopes = defaultBean.getScopes(); this.enableLicensing = defaultBean.getEnableLicensing(); this.translations = defaultBean.getTranslations(); }