@Override public String toToken(final T obj) { final String token = this.token.toToken(obj); return this.jwt.encrypt(token, this.maxAge); }
@Override public String toToken(final T obj) { final String token = this.token.toToken(obj); return encrypt(token, this.cipher); }
@Override public String toToken(final T obj) { final String token = this.token.toToken(obj); return encrypt(token, this.cipher); }
@Override public String toToken(final T obj) { final String token = this.delegate.toToken(obj); return CodecUtils.urlEncode(token); }
@Override public String toToken(final T obj) { final String token = this.delegate.toToken(obj); return CodecUtils.urlEncode(token); }
@Override public String toToken(final T obj) { final String token = this.token.toToken(obj); return this.jwt.encrypt(token, this.maxAge); }
@Override public T setCookie( // final HttpServletRequest request, // final HttpServletResponse response, // final T obj // ) { final String token = this.token.toToken(obj); final String domain = this.domainResolver.resolveDomain(request); final Cookie cookie = TypeSafeCookie.buildCookie(domain, this.httpOnly, this.maxAge, this.name, this.secure, token); response.addCookie(cookie); return obj; } }
@Override public T setCookie( // final HttpServletRequest request, // final HttpServletResponse response, // final T obj // ) { final String token = this.token.toToken(obj); final String domain = this.domainResolver.resolveDomain(request); final Cookie cookie = TypeSafeCookie.buildCookie(domain, this.httpOnly, this.maxAge, this.name, this.secure, token); response.addCookie(cookie); return obj; } }