public class MdrConnection extends Object
| Constructor and Description |
|---|
MdrConnection(String mdrUrl,
String authUserId,
String keyId,
String authUrl,
String privateKeyBase64,
List<String> namespaces)
Establishes connection to the MDR.
|
MdrConnection(String mdrUrl,
String authUserId,
String keyId,
String authUrl,
String privateKeyBase64,
List<String> namespaces,
boolean anonymous,
de.samply.common.http.HttpConnector httpConnector)
Establishes connection to the MDR.
|
MdrConnection(String mdrUrl,
String authUserId,
String keyId,
String authUrl,
String privateKeyBase64,
List<String> namespaces,
de.samply.common.config.Configuration proxy,
boolean anonymous)
Establishes connection to the MDR.
|
MdrConnection(String mdrUrl,
String authUserId,
String keyId,
String authUrl,
String privateKeyBase64,
String namespace)
Establishes connection to the MDR.
|
MdrConnection(String mdrUrl,
String authUserId,
String keyId,
String authUrl,
String privateKeyBase64,
String namespace,
boolean anonymous,
de.samply.common.http.HttpConnector httpConnector)
Establishes connection to the MDR.
|
MdrConnection(String mdrUrl,
String authUserId,
String keyId,
String authUrl,
String privateKeyBase64,
String namespace,
de.samply.common.config.Configuration proxy,
boolean anonymous)
Establishes connection to the MDR.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connections.
|
de.samply.auth.rest.AccessTokenDto |
getAccessToken()
Gets the access token.
|
de.samply.auth.rest.AccessTokenDto |
getAccessToken(com.sun.jersey.api.client.Client client)
Gets an AccessTokenDto accessToken from Samply.AUTH component, used for communication with
other components
|
String |
getAccessTokenToken()
Return AccessToken.
|
String |
getAuthUserId()
Gets the AuthUserId.
|
de.samply.common.mdrclient.MdrClient |
getMdrClient()
Gets the mdr client.
|
List<String> |
getNamespaces()
Gets the mdr namespaces.
|
public MdrConnection(String mdrUrl, String authUserId, String keyId, String authUrl, String privateKeyBase64, String namespace, boolean anonymous, de.samply.common.http.HttpConnector httpConnector)
mdrUrl - URL to MDR RESTauthUserId - The userID to log in withkeyId - The keyId to useauthUrl - URL to AUTH RESTprivateKeyBase64 - The private key (base64 encoded)namespace - The MDR namespace to useanonymous - Access MDR anonymous wayhttpConnector - The httpConnector43 to usepublic MdrConnection(String mdrUrl, String authUserId, String keyId, String authUrl, String privateKeyBase64, List<String> namespaces, boolean anonymous, de.samply.common.http.HttpConnector httpConnector)
mdrUrl - URL to MDR RESTauthUserId - The userID to log in withkeyId - The keyId to useauthUrl - URL to AUTH RESTprivateKeyBase64 - The private key (base64 encoded)namespaces - The MDR namespaces to useanonymous - Access MDR anonymous wayhttpConnector - The httpConnector43 to usepublic MdrConnection(String mdrUrl, String authUserId, String keyId, String authUrl, String privateKeyBase64, String namespace, de.samply.common.config.Configuration proxy, boolean anonymous)
mdrUrl - URL to MDR RESTauthUserId - The userID to log in withkeyId - The keyId to useauthUrl - URL to AUTH RESTprivateKeyBase64 - The private key (base64 encoded)namespace - The MDR namespace to useproxy - Proxy configuration (as de.samply.common.config.Configuration)anonymous - Access MDR anonymous waypublic MdrConnection(String mdrUrl, String authUserId, String keyId, String authUrl, String privateKeyBase64, List<String> namespaces, de.samply.common.config.Configuration proxy, boolean anonymous)
mdrUrl - URL to MDR RESTauthUserId - The userID to log in withkeyId - The keyId to useauthUrl - URL to AUTH RESTprivateKeyBase64 - The private key (base64 encoded)namespaces - The MDR namespaces to useproxy - Proxy configuration (as de.samply.common.config.Configuration)anonymous - Access MDR anonymous waypublic MdrConnection(String mdrUrl, String authUserId, String keyId, String authUrl, String privateKeyBase64, String namespace)
mdrUrl - URL to MDR RESTauthUserId - The userID to log in withkeyId - The keyId to useauthUrl - URL to AUTH RESTprivateKeyBase64 - The private key (base64 encoded)namespace - The MDR namespace to usepublic MdrConnection(String mdrUrl, String authUserId, String keyId, String authUrl, String privateKeyBase64, List<String> namespaces)
mdrUrl - URL to MDR RESTauthUserId - The userID to log in withkeyId - The keyId to useauthUrl - URL to AUTH RESTprivateKeyBase64 - The private key (base64 encoded)namespaces - The MDR namespaces to usepublic void close()
public de.samply.auth.rest.AccessTokenDto getAccessToken(com.sun.jersey.api.client.Client client)
throws NoSuchAlgorithmException,
InvalidKeyException,
SignatureException
client - A Jersey clientNoSuchAlgorithmException - the no such algorithm exceptionInvalidKeyException - the invalid key exceptionSignatureException - the signature exceptionpublic de.samply.auth.rest.AccessTokenDto getAccessToken()
public de.samply.common.mdrclient.MdrClient getMdrClient()
public String getAccessTokenToken()
public String getAuthUserId()
Copyright © 2020 Samply Community. All rights reserved.