Advertisement
Guest User

Untitled

a guest
May 6th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. /*
  2. think this is the method for return the token how would it be?
  3. */
  4. public Token Get(String user, String password)
  5. {
  6. /*Consult in data base and if exist how do I return the token?
  7. how to program it? ( I repeat i am new about tokens)
  8. */
  9.  
  10. return new token();
  11.  
  12. }
  13.  
  14. /*
  15. think this is the method for create the new post what would it receive?
  16. */
  17.  
  18. public Post Get(Post post, token tok) /* is it ok? or it must to be a string? or what*/
  19. {
  20. /* if this is a string with token how do i "decrypte" it? */
  21.  
  22. return post;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement