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, setPassword
getCAFile, getCAPath, getConnection, getCredentialsProvider, getTarget, loadCAs, setCAFile, setCAPath, setConnection, setCredentialsProvider, setTarget
public static final String IDENTIFIER
public VOMSAuthentication(String certificate)
certificate
- cannot be null nor emptypublic String getIdentifier()
Authentication
getIdentifier
in interface Authentication
getIdentifier
in class HTTPAuthentication
public Authentication getFallback()
Authentication
getFallback
in interface Authentication
getFallback
in class HTTPAuthentication
Copyright © 2016. All Rights Reserved.