|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jasig.portal.security.provider.saml.Resource
public class Resource
A class that "wraps" a simple resource that is retrieved from a Web Service Provider (WSP) as a String. The resource is represented by a URL.
| Constructor Summary | |
|---|---|
Resource()
|
|
| Method Summary | |
|---|---|
String |
getResource()
Get the resource as it was retrieved from the WSP. |
String |
getResourceUrl()
Get the URL of the resource. |
org.apache.http.conn.ssl.SSLSocketFactory |
getWSPSocketFactory()
Returns an instance of SSLSocketFactory
suitable for use with the Apache Commons HTTP Client. |
void |
setResource(String resource)
Set the resource as it was retrieved from the WSP. |
void |
setResourceUrl(String resourceUrl)
Get the URL of the resource. |
void |
setupWSPClientConnection(SAMLSession samlSession)
Sets up the SSL parameters of a connection to the WSP, including the client certificate and server certificate trust. |
void |
setWSPClientKeystore(String ks,
String pass)
This method provides an alternative method of providing client TLS certificate to send to the WSP to identify the client. |
void |
setWSPClientPrivateKeyAndCert(String pkFile,
String certFile)
This method is used to specify the private key and certificate to use to identify the client to the WSP. |
void |
setWSPClientTrustStore(String ks,
String pass)
This method allows to specify a Java TrustStore of server X.509 certificates to trust. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Resource()
| Method Detail |
|---|
public String getResource()
public void setResource(String resource)
resource - the resource to setpublic String getResourceUrl()
public void setResourceUrl(String resourceUrl)
resourceUrl - the resourceUrl to set
public void setWSPClientPrivateKeyAndCert(String pkFile,
String certFile)
pkFile - file name of the PEM-encoded private keycertFile - file name of the PEM-encoded certificate
public void setWSPClientKeystore(String ks,
String pass)
ks - file name of Java KeyStore containing the certificate and private
key to present to the WSPpass - KeyStore password (must not be null)#setWSPClientPrivateKeyAndCert()
public void setWSPClientTrustStore(String ks,
String pass)
ks - file name of a Java KeyStorepass - password to access the KeyStorepublic org.apache.http.conn.ssl.SSLSocketFactory getWSPSocketFactory()
SSLSocketFactory
suitable for use with the Apache Commons HTTP Client. This socket factory
is set up with the previously set keys and/or certificates for communicating
with the WSP.
public void setupWSPClientConnection(SAMLSession samlSession)
throws MalformedURLException
samlSession - SAMLSession that already must contain a valid HttpClient for the WSPresource - Resource wrapper class that contains a resource URL
MalformedURLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||