Refine search
RemoteConfigElement configElement = new RemoteConfigElement(); EndpointDescriptor descriptor = new EndpointDescriptor(el); configElement.endpoints.put(descriptor.getId(), descriptor);
EndpointDescriptor descriptor = this.config.getEndpointDescriptor(endpointId); if (descriptor == null || descriptor.getUnsecure()) descriptor.getIdentity() == IdentityType.NONE || descriptor.getIdentity() == IdentityType.DECLARED || descriptor.getExternalAuth()) else if (descriptor.getBasicAuth())
EndpointDescriptor endpointDescriptor = getRemoteConfig().getEndpointDescriptor(endpointId); if (endpointDescriptor == null) String connectorId = (String)endpointDescriptor.getConnectorId(); if (connectorId == null) "The connector id property on the endpoint definition '" + endpointId + "' was empty"); ConnectorDescriptor connectorDescriptor = getRemoteConfig().getConnectorDescriptor(connectorId); if (connectorDescriptor == null) String url = endpointDescriptor.getEndpointUrl(); if (authId != null) AuthenticatorDescriptor authDescriptor = getRemoteConfig().getAuthenticatorDescriptor(authId); if (authDescriptor == null) IdentityType identity = endpointDescriptor.getIdentity(); switch (identity) String username = (String) endpointDescriptor.getUsername(); String password = (String) endpointDescriptor.getPassword(); else if (endpointDescriptor.getExternalAuth() && userContext.getUserId() != null)
public Credentials retrieve(String endpointId) { Credentials credentials = this.credentialsMap.get(endpointId); if (credentials == null) { // Remap endpoint allow an endpoint to share another endpoint credentials // @see ConnectorService.getConnectorSession() EndpointDescriptor desc = this.remote.getEndpointDescriptor(endpointId); if (desc == null) { throw new IllegalArgumentException("Unknown endpoint ID: " + endpointId); } String remapId = desc.getParentId(); if (remapId != null) { credentials = this.credentialsMap.get(remapId); } } return credentials; }
EndpointDescriptor endpointDescriptor = getRemoteConfig().getEndpointDescriptor(endpointId); if (endpointDescriptor == null) String connectorId = (String)endpointDescriptor.getConnectorId(); if (connectorId == null) "The connector id property on the endpoint definition '" + endpointId + "' was empty"); ConnectorDescriptor connectorDescriptor = getRemoteConfig().getConnectorDescriptor(connectorId); if (connectorDescriptor == null) String url = endpointDescriptor.getEndpointUrl(); if (authId != null) AuthenticatorDescriptor authDescriptor = getRemoteConfig().getAuthenticatorDescriptor(authId); if (authDescriptor == null) IdentityType identity = endpointDescriptor.getIdentity(); switch (identity) String username = (String) endpointDescriptor.getUsername(); String password = (String) endpointDescriptor.getPassword(); else if (endpointDescriptor.getExternalAuth() && userContext.getUserId() != null)
public Credentials retrieve(String endpointId) { Credentials credentials = this.credentialsMap.get(endpointId); if (credentials == null) { // Remap endpoint allow an endpoint to share another endpoint credentials // @see ConnectorService.getConnectorSession() EndpointDescriptor desc = this.remote.getEndpointDescriptor(endpointId); if (desc == null) { throw new IllegalArgumentException("Unknown endpoint ID: " + endpointId); } String remapId = desc.getParentId(); if (remapId != null) { credentials = this.credentialsMap.get(remapId); } } return credentials; }
EndpointDescriptor endpointDescriptor = getRemoteConfig().getEndpointDescriptor(endpointId); if (endpointDescriptor == null) String connectorId = (String)endpointDescriptor.getConnectorId(); if (connectorId == null) "The connector id property on the endpoint definition '" + endpointId + "' was empty"); ConnectorDescriptor connectorDescriptor = getRemoteConfig().getConnectorDescriptor(connectorId); if (connectorDescriptor == null) String url = endpointDescriptor.getEndpointUrl(); if (authId != null) AuthenticatorDescriptor authDescriptor = getRemoteConfig().getAuthenticatorDescriptor(authId); if (authDescriptor == null) IdentityType identity = endpointDescriptor.getIdentity(); switch (identity) String username = (String) endpointDescriptor.getUsername(); String password = (String) endpointDescriptor.getPassword(); else if (endpointDescriptor.getExternalAuth() && userContext.getUserId() != null)
RemoteConfigElement configElement = new RemoteConfigElement(); EndpointDescriptor descriptor = new EndpointDescriptor(el); configElement.endpoints.put(descriptor.getId(), descriptor);
/** * Removes the ConnectorSession from the HttpSession for the given endpoint * * @param session the session * @param endpointId the endpoint id */ public void removeConnectorSession(HttpSession session, String endpointId) { if (session == null) { throw new IllegalArgumentException("HttpSession cannot be null."); } // Remap connector to use existing credential id connector session endpoint // to allow an endpoint to share another endpoint credentials and connector session // @see SimpleCredentialVault.retrieve() EndpointDescriptor desc = this.remoteConfig.getEndpointDescriptor(endpointId); if (desc.getParentId() != null) { endpointId = desc.getParentId(); } String key = getSessionEndpointKey(endpointId); session.removeAttribute(key); }
RemoteConfigElement configElement = new RemoteConfigElement(); EndpointDescriptor descriptor = new EndpointDescriptor(el); configElement.endpoints.put(descriptor.getId(), descriptor);
EndpointDescriptor desc = this.remoteConfig.getEndpointDescriptor(endpointId); if (desc.getParentId() != null) endpointId = desc.getParentId();
/** * Removes the ConnectorSession from the HttpSession for the given endpoint * * @param session the session * @param endpointId the endpoint id */ public void removeConnectorSession(HttpSession session, String endpointId) { if (session == null) { throw new IllegalArgumentException("HttpSession cannot be null."); } // Remap connector to use existing credential id connector session endpoint // to allow an endpoint to share another endpoint credentials and connector session // @see SimpleCredentialVault.retrieve() EndpointDescriptor desc = getRemoteConfig().getEndpointDescriptor(endpointId); if (desc.getParentId() != null) { endpointId = desc.getParentId(); } String key = getSessionEndpointKey(endpointId); session.removeAttribute(key); }
EndpointDescriptor desc = getRemoteConfig().getEndpointDescriptor(endpointId); if (desc.getParentId() != null) endpointId = desc.getParentId();
EndpointDescriptor descriptor = this.config.getEndpointDescriptor(endpointId); if (descriptor == null || descriptor.getUnsecure()) descriptor.getIdentity() == IdentityType.NONE || descriptor.getIdentity() == IdentityType.DECLARED || descriptor.getExternalAuth()) else if (descriptor.getBasicAuth())
EndpointDescriptor descriptor = this.config.getEndpointDescriptor(endpointId); if (descriptor == null || descriptor.getUnsecure()) descriptor.getIdentity() == IdentityType.NONE || descriptor.getIdentity() == IdentityType.DECLARED || descriptor.getExternalAuth()) else if (descriptor.getBasicAuth())
EndpointDescriptor descriptor = getRemoteConfig().getEndpointDescriptor(endpointId); if (descriptor == null || descriptor.getUnsecure()) else if (descriptor.getIdentity() == IdentityType.NONE || descriptor.getIdentity() == IdentityType.DECLARED || descriptor.getExternalAuth()) else if (descriptor.getBasicAuth() || this.proxyControllerInterceptor.allowHttpBasicAuthentication(descriptor, uri))
EndpointDescriptor descriptor = getRemoteConfig().getEndpointDescriptor(endpointId); if (descriptor == null || descriptor.getUnsecure()) else if (descriptor.getIdentity() == IdentityType.NONE || descriptor.getIdentity() == IdentityType.DECLARED || descriptor.getExternalAuth()) else if (descriptor.getBasicAuth() || this.proxyControllerInterceptor.allowHttpBasicAuthentication(descriptor, uri))
EndpointDescriptor descriptor = getRemoteConfig().getEndpointDescriptor(endpointId); if (descriptor == null || descriptor.getUnsecure()) descriptor.getExternalAuth())) else if (descriptor.getIdentity() == IdentityType.NONE || descriptor.getIdentity() == IdentityType.DECLARED || descriptor.getExternalAuth()) else if (descriptor.getBasicAuth() || this.proxyControllerInterceptor.allowHttpBasicAuthentication(descriptor, uri))
final EndpointDescriptor desc = config.getEndpointDescriptor(endpointId); if (desc == null) final RemoteClient remoteClient = buildRemoteClient(config.getEndpointDescriptor(endpointId).getEndpointUrl());
/** * Returns the description of an endpoint * * @param endpointId String * @return String */ @ScriptMethod ( help="Returns the description of an endpoint", output="Endpoint description" ) public String getEndpointDescription(@ScriptParameter(help="Endpoint id") String endpointId) { String description = null; RemoteConfigElement remoteConfig = getRemoteConfig(); if(remoteConfig != null) { EndpointDescriptor descriptor = remoteConfig.getEndpointDescriptor(endpointId); if(descriptor != null) { description = descriptor.getDescription(); } } return description; }