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;
    }
public static String getTokenSentence(BasicToken token) throws Exception {
        if (token == null)
            return tokenKey + "=" + cookieSentence;
        String sentence = tokenKey + "=" + token.getTokenString() + cookieSentence;
        

        return sentence;
    }
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

@param token
@return
Combines the token and cookie sentence