|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jasig.portal.security.provider.saml.SAMLSession
public class SAMLSession
This class is used to maintain the state of delegated SAML authentication
before, during, and after the authentication. Please note that some of the
methods of this class are package-scoped. This rather unusual scoping is
used to permit access to other classes, most notably SAMLDelegatedAuthenticationService,
to methods in this class, but to keep those methods from the public API
documentation.
| Constructor Summary | |
|---|---|
SAMLSession(String samlAssertion,
org.apache.http.conn.ClientConnectionManager connectionManager,
org.apache.http.params.HttpParams params)
Public constructor that initializes the SAML session. |
|
| Method Summary | |
|---|---|
org.apache.http.client.HttpClient |
getHttpClient()
Returns the Apache Commons HTTP Client that is set up with an authenticated session to the WSP. |
IdPEPRResolver |
getIdpResolver()
|
org.apache.http.conn.ssl.SSLSocketFactory |
getIdPSocketFactory()
Returns an instance of SSLSocketFactory
suitable for use with the Apache Commons HTTP Client. |
String |
getPortalEntityID()
Returns the portal's entityID. |
String |
getSamlAssertion()
Returns the same String representation of SAML assertion that was passed to the constructor. |
Document |
getSamlAssertionDom()
Returns the DOM representation of the SAML assertion. |
boolean |
isSkipValidateIdp()
|
void |
setIdPClientKeystore(String ks,
String pass)
This method provides an alternative method of providing client TLS certificate to send to the IdP to identify the client. |
void |
setIdPClientPrivateKeyAndCert(String pkFile,
String certFile)
This method is used to specify the private key and certificate to use to identify the client to the IdP. |
void |
setIdPClientTrustStore(String ks,
String pass)
This method allows to specify a Java TrustStore of server X.509 certificates to trust. |
void |
setIdpResolver(IdPEPRResolver idpResolver)
Provide an implementation of the IdPEPRResolver interface to resolve the IdP endpoint to which the delegated SAML authentication requests must be presented. |
void |
setIdPServerPublicKeys(String publicKeys)
This method allows to specify the public key(s) to verify and trust when communicating with the IdP. |
void |
setPortalEntityID(String portalEntityID)
Sets the portal's entityID. |
void |
setSkipValidateIdp(boolean skipValidateIdp)
Set if the IDP host name validation step should be skipped during authentication. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAMLSession(String samlAssertion,
org.apache.http.conn.ClientConnectionManager connectionManager,
org.apache.http.params.HttpParams params)
samlAssertion - SAML assertion that was passed to the portal for authenticationconnectionManager - The connection manager to use for the HttpClient used for making authenticated requests. The caller is responsible for the ClientConnectionManager lifecycle.params - the HttpClient configuration parameters to use.| Method Detail |
|---|
public String getSamlAssertion()
public Document getSamlAssertionDom()
public org.apache.http.client.HttpClient getHttpClient()
Resource passed during authentication.
HttpClient classpublic IdPEPRResolver getIdpResolver()
setIdPResolverpublic void setIdpResolver(IdPEPRResolver idpResolver)
AssertionIdPResolver
resolved the endpoint from SAML assertion. Shibboleth IdP provides an
endpoint reference in the assertion.
idpResolver - the implementation of the IdPEPRResolver interface
public void setIdPClientPrivateKeyAndCert(String pkFile,
String certFile)
pkFile - file name of the PEM-encoded private keycertFile - file name of the PEM-encoded certificate
public void setIdPClientKeystore(String ks,
String pass)
ks - file name of Java KeyStore containing the certificate and private
key to present to the IdPpass - KeyStore password (must not be null)#setIdPClientPrivateKeyAndCert()
public void setIdPClientTrustStore(String ks,
String pass)
ks - file name of a Java KeyStorepass - password to access the KeyStorepublic void setIdPServerPublicKeys(String publicKeys)
publicKeys - Base64-encoded public key(s) to verify before allowing
a connection to the IdP to proceed.public org.apache.http.conn.ssl.SSLSocketFactory getIdPSocketFactory()
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 IdP.
public String getPortalEntityID()
public void setPortalEntityID(String portalEntityID)
portalEntityID - the portalEntityID to setpublic boolean isSkipValidateIdp()
public void setSkipValidateIdp(boolean skipValidateIdp)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||