protected PAResponse getAsset(Client client, Map props, AccessToken accessToken) {
HashMap m = new HashMap();
m.put(OA2Constants.ACCESS_TOKEN, accessToken.getToken().toString());
m.put(OA2Constants.CLIENT_ID, client.getIdentifierString());
m.put(OA2Constants.CLIENT_SECRET, client.getSecret());
m.put(OA2Constants.REDIRECT_URI, props.get(OA2Constants.REDIRECT_URI));
m.put(OA2Constants.CERT_REQ, String.valueOf(props.get(AbstractClientEnvironment.CERT_REQUEST_KEY)));
m.put(OA2Constants.CERT_LIFETIME, String.valueOf(props.get(AbstractClientEnvironment.CERT_LIFETIME_KEY)));
String response = getServiceClient().getRawResponse(m);
MyX509Certificates myX509Certificate = null;
try {
myX509Certificate = new MyX509Certificates(CertUtil.fromX509PEM(response));
} catch (CertificateException e) {
e.printStackTrace();
}
PAResponse par = new PAResponse(myX509Certificate);
return par;
}
}