public class MyProxyServiceFacade extends Object
null
one could be supplied).
LOAs, that is to say different levels of assurance are also supported here if they are
set in the ServiceFacadeConfiguration
.
Created by Jeff Gaynor
on May 16, 2011 at 5:11:24 PM
Constructor and Description |
---|
MyProxyServiceFacade(ServiceFacadeConfiguration facadeConfiguration)
Constructor for first case, where the username and password is used for each call, so no keystore is required.
|
MyProxyServiceFacade(ServiceFacadeConfiguration facadeConfiguration,
SSLKeystoreConfiguration sslKeystoreConfiguration)
Constructor for second case, where the server will use a host cert to connect to MyProxy.
|
Modifier and Type | Method and Description |
---|---|
Collection<X509Certificate> |
getCerts(String userDN,
byte[] derCertRequest,
long lifetime,
String loa)
Method to get certs if the server is using a host cert.
|
Collection<X509Certificate> |
getCerts(String userDN,
int port,
long lifetime,
byte[] derCertRequest)
This method is to be used when the server logs on to MyProxy using a host cert, so no passphrase is required.
|
Collection<X509Certificate> |
getCerts(String userDN,
long lifetime,
byte[] derCertRequest,
String loa)
Deprecated.
|
Collection<X509Certificate> |
getCerts(String userDN,
String password,
byte[] derCertRequest,
long lifetime) |
Collection<X509Certificate> |
getCerts(String userDN,
String password,
int port,
byte[] derCertRequest)
Most basic call.
|
Collection<X509Certificate> |
getCerts(String userDN,
String password,
int port,
long lifetime,
byte[] derCertRequest)
The method that does the work, actually.
|
Collection<X509Certificate> |
getCerts(String userDN,
String password,
long lifetime,
byte[] derCertRequest)
Deprecated.
|
Collection<X509Certificate> |
getCerts(String userDN,
String password,
long lifetime,
byte[] derCertRequest,
String loa)
Call that allows specification of the level of assurance and the lifetime.
|
ServiceFacadeConfiguration |
getFacadeConfiguration()
Get the current configuration.
|
protected KeyManagerFactory |
getKeyManagerFactory()
Gets the key manager associated with the given keystore.
|
protected int |
getLOAPort(String id) |
SSLKeystoreConfiguration |
getSslKeystoreConfiguration()
Get the current keystore.
|
boolean |
hasSSL() |
public MyProxyServiceFacade(ServiceFacadeConfiguration facadeConfiguration)
facadeConfiguration
- public MyProxyServiceFacade(ServiceFacadeConfiguration facadeConfiguration, SSLKeystoreConfiguration sslKeystoreConfiguration)
facadeConfiguration
- sslKeystoreConfiguration
- protected int getLOAPort(String id)
public ServiceFacadeConfiguration getFacadeConfiguration()
public SSLKeystoreConfiguration getSslKeystoreConfiguration()
public boolean hasSSL()
public Collection<X509Certificate> getCerts(String userDN, String password, int port, byte[] derCertRequest) throws IOException, GeneralSecurityException
userDN
- password
- derCertRequest
- IOException
GeneralSecurityException
public Collection<X509Certificate> getCerts(String userDN, int port, long lifetime, byte[] derCertRequest) throws IOException, GeneralSecurityException
userDN
- port
- lifetime
- derCertRequest
- IOException
GeneralSecurityException
public Collection<X509Certificate> getCerts(String userDN, String password, int port, long lifetime, byte[] derCertRequest) throws IOException, GeneralSecurityException
userDN
- password
- port
- lifetime
- derCertRequest
- IOException
GeneralSecurityException
public Collection<X509Certificate> getCerts(String userDN, String password, long lifetime, byte[] derCertRequest, String loa) throws IOException, GeneralSecurityException
userDN
- password
- loa
- lifetime
- Set equal to zero to accept whatever the default isderCertRequest
- IOException
GeneralSecurityException
public Collection<X509Certificate> getCerts(String userDN, String password, long lifetime, byte[] derCertRequest) throws IOException, GeneralSecurityException
userDN
- password
- lifetime
- derCertRequest
- IOException
GeneralSecurityException
public Collection<X509Certificate> getCerts(String userDN, String password, byte[] derCertRequest, long lifetime) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public Collection<X509Certificate> getCerts(String userDN, byte[] derCertRequest, long lifetime, String loa) throws IOException, GeneralSecurityException
userDN
- derCertRequest
- lifetime
- loa
- IOException
GeneralSecurityException
public Collection<X509Certificate> getCerts(String userDN, long lifetime, byte[] derCertRequest, String loa) throws IOException, GeneralSecurityException
getCerts(String, byte[], long, String)
userDN
- lifetime
- derCertRequest
- loa
- IOException
GeneralSecurityException
protected KeyManagerFactory getKeyManagerFactory() throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
Copyright © 2019. All Rights Reserved.