@Override protected Map<String,Object> generateConfig(HttpServletRequest request,HttpServletResponse response,SSOToken ssoToken) throws AuthenticationException {
  try {
    final String tokenIdleTime=ssoToken.getProperty(JwtSessionModule.TOKEN_IDLE_TIME_IN_MINUTES_CLAIM_KEY);
    final String maxTokenLife=ssoToken.getProperty(JwtSessionModule.MAX_TOKEN_LIFE_IN_MINUTES_KEY);
    final boolean enforceClientIP=Boolean.parseBoolean(ssoToken.getProperty(ENFORCE_CLIENT_IP_SETTING_KEY));
    final String realm=ssoToken.getProperty(SSO_TOKEN_ORGANIZATION_PROPERTY_KEY);
    boolean secureCookie=Boolean.parseBoolean(ssoToken.getProperty(SECURE_COOKIE_KEY));
    boolean httpOnlyCookie=Boolean.parseBoolean(ssoToken.getProperty(HTTP_ONLY_COOKIE_KEY));
    String cookieName=ssoToken.getProperty(COOKIE_NAME_KEY);
    String cookieDomainsString=ssoToken.getProperty(COOKIE_DOMAINS_KEY);
    Collection<String> cookieDomains;
    if (cookieDomainsString.isEmpty()) {
      cookieDomains=Collections.singleton(null);
    }
 else {
      cookieDomains=Arrays.asList(cookieDomainsString.split(","));
    }
    final String hmacKey=AccessController.doPrivileged(new DecodeAction(ssoToken.getProperty(HMAC_KEY)));
    ssoToken.setProperty(HMAC_KEY,"");
    return persistentCookieModuleWrapper.generateConfig(tokenIdleTime,maxTokenLife,enforceClientIP,realm,secureCookie,httpOnlyCookie,cookieName,cookieDomains,hmacKey);
  }
 catch (  SSOException|SMSException e) {
    DEBUG.error("Could not initialise the Auth Module",e);
    throw new AuthenticationException(e.getLocalizedMessage());
  }
}

@ Override protected Map < String , Object > generateConfig ( HttpServletRequest request , HttpServletResponse response , SSOToken ssoToken ) throws AuthenticationException { try { final String tokenIdleTime = ssoToken . getProperty ( JwtSessionModule . TOKEN_IDLE_TIME_IN_MINUTES_CLAIM_KEY ) ; final String maxTokenLife = ssoToken . getProperty ( JwtSessionModule . MAX_TOKEN_LIFE_IN_MINUTES_KEY ) ; final boolean enforceClientIP = Boolean . parseBoolean ( ssoToken . getProperty ( ENFORCE_CLIENT_IP_SETTING_KEY ) ) ; final String realm = ssoToken . getProperty ( SSO_TOKEN_ORGANIZATION_PROPERTY_KEY ) ; boolean secureCookie = Boolean . parseBoolean ( ssoToken . getProperty ( SECURE_COOKIE_KEY ) ) ; boolean httpOnlyCookie = Boolean . parseBoolean ( ssoToken . getProperty ( HTTP_ONLY_COOKIE_KEY ) ) ; String cookieName = ssoToken . getProperty ( COOKIE_NAME_KEY ) ; String cookieDomainsString = ssoToken . getProperty ( COOKIE_DOMAINS_KEY ) ; Collection < String > cookieDomains ; if ( cookieDomainsString . isEmpty ( ) ) { cookieDomains = Collections . singleton ( null ) ; } else { cookieDomains = Arrays . asList ( cookieDomainsString . split ( "," ) ) ; } final String hmacKey = AccessController . doPrivileged ( new DecodeAction ( ssoToken . getProperty ( HMAC_KEY ) ) ) ; ssoToken . setProperty ( HMAC_KEY , "" ) ; return persistentCookieModuleWrapper . generateConfig ( tokenIdleTime , maxTokenLife , enforceClientIP , realm , secureCookie , httpOnlyCookie , cookieName , cookieDomains , hmacKey ) ; } catch ( SSOException | SMSException e ) { DEBUG . error ( "Could not initialise the Auth Module" , e ) ; throw new AuthenticationException ( e . getLocalizedMessage ( ) ) ; } }
initialises the jwtsessionmodule for use by the post authentication process .
