public static String getTokenSentence ( BasicToken token ) throws Exception { if ( token == null ) return tokenKey + "=" + cookieSentence ; String sentence = tokenKey + "=" + token . getTokenString ( ) + cookieSentence ; //TODO: Learn how to calculate expire according to the browser time. // sentence = sentence.replace("{expireDate}", token.getExpirationDate().toGMTString()); return sentence ; }
Combines the token and cookie sentence