c# - What is the ISecureDataFormat<TData> used for? -


i not understand interface used for, protect , unprotect methods,is used generate custom tokens?

namespace microsoft.owin.security {     public interface isecuredataformat<tdata> {         string protect(tdata data);         tdata unprotect(string protectedtext);     } } 

it seems me owin required interface generation , of parsing security tokens such json web tokens(jwt). have done programming in area , noticed in recent sample programmer used thinktechture toolkit generate jwt "protect"s owin implementation.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -