|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.security.delegation.DelegationClientHTTP
The client implementation for the G-HTTPS protocol for the delegation system.
Field Summary | |
static java.security.Provider |
provider
|
Constructor Summary | |
DelegationClientHTTP()
|
Method Summary | |
protected void |
checkResponseErrors(HTTPClient.HTTPResponse response)
Checks the response for error codes. |
protected HTTPClient.HTTPConnection |
createConnection(java.lang.String url)
|
protected HTTPClient.HTTPConnection |
createConnection(HTTPClient.URI destUri)
Creates the coennection to the uri |
void |
delegate(java.util.Properties delegProps,
java.lang.String delegId,
java.lang.String url)
|
protected java.security.cert.X509Certificate[] |
getChain(java.util.Properties prop)
Loads the certificate chain from files specified in the properties file |
protected java.util.Collection |
getDelegatedChains(HTTPClient.HTTPResponse response)
|
protected java.security.PrivateKey |
getPrivateKey(java.util.Properties prop)
Loads a privete key from tha file specified in the properties. |
void |
init(java.lang.String configFile)
|
protected java.security.cert.X509Certificate |
loadCert(java.lang.String fileName)
Loads an indivudial certificate from a file. |
static void |
main(java.lang.String[] args)
|
java.util.Collection |
queryDelegatedCertChains(java.util.Properties delegProps,
java.lang.String delegId,
java.lang.String url)
|
protected HTTPClient.HTTPResponse |
sendGetCertReq(HTTPClient.HTTPConnection connection,
HTTPClient.URI destUri,
java.lang.String delegId)
Sends a certification reques to the specified uri. |
protected HTTPClient.HTTPResponse |
sendGetProxyInfo(HTTPClient.HTTPConnection connection,
HTTPClient.URI destUri,
java.lang.String delegId)
|
protected HTTPClient.HTTPResponse |
sendPutCert(HTTPClient.HTTPConnection connection,
HTTPClient.URI destUri,
java.lang.String delegId)
sends a put proxy cert |
void |
testDelegation(java.util.Properties prop,
java.lang.String delegId,
java.lang.String url)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.security.Provider provider
Constructor Detail |
public DelegationClientHTTP()
Method Detail |
public void init(java.lang.String configFile)
init
in interface DelegationClient
public void delegate(java.util.Properties delegProps, java.lang.String delegId, java.lang.String url) throws DelegationException
delegate
in interface DelegationClient
DelegationException
public java.util.Collection queryDelegatedCertChains(java.util.Properties delegProps, java.lang.String delegId, java.lang.String url) throws DelegationException
queryDelegatedCertChains
in interface DelegationClient
DelegationException
public void testDelegation(java.util.Properties prop, java.lang.String delegId, java.lang.String url) throws DelegationException
DelegationException
protected java.security.cert.X509Certificate[] getChain(java.util.Properties prop) throws DelegationException
DelegationException
protected java.security.cert.X509Certificate loadCert(java.lang.String fileName) throws DelegationException
DelegationException
protected java.security.PrivateKey getPrivateKey(java.util.Properties prop) throws DelegationException
DelegationException
protected HTTPClient.HTTPConnection createConnection(java.lang.String url) throws DelegationException
DelegationException
protected HTTPClient.HTTPConnection createConnection(HTTPClient.URI destUri) throws DelegationException
DelegationException
protected HTTPClient.HTTPResponse sendGetCertReq(HTTPClient.HTTPConnection connection, HTTPClient.URI destUri, java.lang.String delegId)
protected HTTPClient.HTTPResponse sendPutCert(HTTPClient.HTTPConnection connection, HTTPClient.URI destUri, java.lang.String delegId) throws DelegationException
DelegationException
protected HTTPClient.HTTPResponse sendGetProxyInfo(HTTPClient.HTTPConnection connection, HTTPClient.URI destUri, java.lang.String delegId) throws DelegationException
DelegationException
protected java.util.Collection getDelegatedChains(HTTPClient.HTTPResponse response)
protected void checkResponseErrors(HTTPClient.HTTPResponse response) throws DelegationException
response
- response to check
DelegationException
- if something unexpected occurredpublic static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |