org.eclipse.higgins.saml2idp.server
Class Init

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.eclipse.higgins.saml2idp.server.Init
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class Init
extends javax.servlet.http.HttpServlet
implements javax.servlet.Servlet

This servlet overrides only the init() method and is used to initialize common objects of our web application. In particular, it loads the Higgins configuration and starts up Higgins-related components. Static getter methods are provided for retrieving these components.

See Also:
Serialized Form

Constructor Summary
Init()
           
 
Method Summary
static Set getAcceptAcsUrls()
          Returns the acceptable ACS URLs.
static String getExtractUsernameCookieName()
          Returns the name of the cookie from which a username should be extracted.
static String getExtractUsernameHeaderName()
          Returns the name of the header from which a username should be extracted.
static String getExtractUsernameParameterName()
          Returns the name of the parameter from which a username should be extracted.
static org.eclipse.higgins.idas.api.IContextFactory getHigginsContextFactory()
          Returns the Higgins IContextFactory that can instantiate the context we validate against.
static org.eclipse.higgins.idas.api.IContextId getHigginsContextId()
          Returns the Higgins context ID for the context we validate against.
static String getHigginsContextType()
          Returns the Higgins context type for the context we validate against.
static org.eclipse.higgins.idas.registry.IdASRegistry getHigginsRegistry()
          Returns the Higgins IdASRegistry.
static X509Certificate getIdpCertificate()
          Returns the certificate used for the KeyInfo element in XML Signatures.
static PrivateKey getIdpPrivateKey()
          Returns the private key used to sign SAML2 messages.
static PublicKey getIdpPublicKey()
          Returns the public key used for the KeyInfo element in XML Signatures.
static Properties getProperties()
          Returns the application properties.
static X509Certificate[] getRpCertificates()
          Returns the certificates used to validate SAML2 messages.
static PublicKey[] getRpPublicKeys()
          Returns the public keys used to validate SAML2 messages.
static long getSAML2AssertionValidityMillis()
          Returns the validity period of issued SAML2 assertions.
static String getSAML2Issuer()
          Returns the SAML2 issuer.
 void init()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.Servlet
destroy, getServletConfig, getServletInfo, init, service
 

Constructor Detail

Init

public Init()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

getProperties

public static Properties getProperties()
Returns the application properties.


getSAML2Issuer

public static String getSAML2Issuer()
Returns the SAML2 issuer.


getSAML2AssertionValidityMillis

public static long getSAML2AssertionValidityMillis()
Returns the validity period of issued SAML2 assertions. This is used to construct the value of the NotOnOrAfter attribute on the Conditions element.


getExtractUsernameParameterName

public static String getExtractUsernameParameterName()
Returns the name of the parameter from which a username should be extracted.


getExtractUsernameHeaderName

public static String getExtractUsernameHeaderName()
Returns the name of the header from which a username should be extracted.


getExtractUsernameCookieName

public static String getExtractUsernameCookieName()
Returns the name of the cookie from which a username should be extracted.


getIdpPrivateKey

public static PrivateKey getIdpPrivateKey()
Returns the private key used to sign SAML2 messages.


getIdpCertificate

public static X509Certificate getIdpCertificate()
Returns the certificate used for the KeyInfo element in XML Signatures.


getIdpPublicKey

public static PublicKey getIdpPublicKey()
Returns the public key used for the KeyInfo element in XML Signatures.


getRpCertificates

public static X509Certificate[] getRpCertificates()
Returns the certificates used to validate SAML2 messages.


getRpPublicKeys

public static PublicKey[] getRpPublicKeys()
Returns the public keys used to validate SAML2 messages.


getAcceptAcsUrls

public static Set getAcceptAcsUrls()
Returns the acceptable ACS URLs.


getHigginsRegistry

public static org.eclipse.higgins.idas.registry.IdASRegistry getHigginsRegistry()
Returns the Higgins IdASRegistry.


getHigginsContextId

public static org.eclipse.higgins.idas.api.IContextId getHigginsContextId()
Returns the Higgins context ID for the context we validate against.


getHigginsContextType

public static String getHigginsContextType()
Returns the Higgins context type for the context we validate against.


getHigginsContextFactory

public static org.eclipse.higgins.idas.api.IContextFactory getHigginsContextFactory()
Returns the Higgins IContextFactory that can instantiate the context we validate against.