public class VOMSAuthentication extends CertificateAuthentication
Supports certificates in pk12 or pem format. This method has a Keystone authentication method as fallback.
Example:
HTTPAuthentication auth = new VOMSAuthentication("/path/to/certificate.pem");
auth.setCAPath("/etc/grid-security/certificates/"); //path to CA directory
Client client = new HTTPClient(URI.create("https://remote.server.net"), auth);| Modifier and Type | Field and Description |
|---|---|
static String |
IDENTIFIER |
| Constructor and Description |
|---|
VOMSAuthentication(String certificate)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Authentication |
getFallback()
Returns authentication's fallback authentication method.
|
String |
getIdentifier()
Returns unique identifier for this authentication method.
|
authenticate, createSSLContext, getCertificate, getPassword, setCertificate, setPasswordgetCAFile, getCAPath, getConnection, getCredentialsProvider, getTarget, loadCAs, setCAFile, setCAPath, setConnection, setCredentialsProvider, setTargetpublic static final String IDENTIFIER
public VOMSAuthentication(String certificate)
certificate - cannot be null nor emptypublic String getIdentifier()
AuthenticationgetIdentifier in interface AuthenticationgetIdentifier in class HTTPAuthenticationpublic Authentication getFallback()
AuthenticationgetFallback in interface AuthenticationgetFallback in class HTTPAuthenticationCopyright © 2016. All rights reserved.