Previous Topic: Cookie-Related ParametersNext Topic: Program Flow at the Relying Party Using the Legacy Cookie


Using the CA SiteMinder® Federation Standalone Java SDK

This section contains the following topics:

Program Flow at the Relying Party Using the Open Format Cookie

Program Flow at the Relying Party Using the Legacy Cookie

Delegated Authentication Using the Open Format Cookie

Delegated Authentication Using the Legacy Cookie

CA SiteMinder® Federation Standalone Java SDK Logging

Java SDK Sample Application Overview

Java SDK Sample Application Deployment

Java SDK Sample Application Execution

Java SDK Sample Application Customization

Program Flow at the Relying Party Using the Open Format Cookie

A brief description of Java SDK program flow at the relying party is following.

  1. The Java Application creates an implementation class of the IFederationOpenIdentity interface using the IdentityFactory interface.
  2. The Java application calls the extractCookie() method to extract the cookie from the HttpServletRequest object. This method also decrypts the cookie and puts the identity attributes in the Storage Map.
  3. Alternatively, the Java application can also call the processCookie() method to extract all the attributes from a cookie object and set them in the Storage Map.
  4. The Java application can get values for all the attributes that are put in the Storage Map using the getAttributes(), getAttribute(), getAuthnContext(), getSessionID(), getNameID(), getNameIDFormat(), and getUserConsent() methods.
  5. The Java application can set values for attributes in the cookie using the setAuthnContext() and setUserConsent() methods.
  6. The Java application can determine whether the cookie is no longer valid by calling the isExpired() method, with or without specifying a skew time. The method compares the expiration time stamp on the cookie, adding in the optional skew time, with the current GMT time. If the GMT time is greater, the cookie has expired. The cookie's expiration time stamp is specified using setTimeToLive() method when the cookie is created.

See the Javadoc reference for detailed information about these methods.