/*
 *      Copyright (C) 2015 Noorq, Inc.
 *      All rights reserved.
 */
package com.mailrest.maildal.secur;

public interface TokenManager<T> {

	String toJwt(T tokenObj, int durationMinutes);
	
	T fromJwt(String jwt); 
	
}

@@ -215,13 +215,289 @@
 g jwt); 
+%0A%0A%09default String toJwtLink(T tokenObj, int durationMinutes) %7B%0A%09%09String jwt = toJwt(tokenObj, durationMinutes);%0A%09%09return TokenLink.INSTANCE.encode(jwt);%0A%09%7D%0A%09%0A%09default T fromJwtLink(String jwtLink) %7B%0A%09%09String jwt = TokenLink.INSTANCE.decode(jwtLink);%0A%09%09return fromJwt(jwt); %0A%09%7D
 %0A%09%0A%7D%0A

add TokenLink converter