1 18 package org.apache.geronimo.interop.security; 19 20 public class SimpleSubject { 21 25 public static final int FLAG_SESSION_MANAGER = 1; 26 27 31 private static ThreadLocal _current = new ThreadLocal (); 32 33 private String _username; 34 35 private String _password; 36 37 private int _flags; 38 39 43 public static SimpleSubject getCurrent() { 44 return (SimpleSubject) _current.get(); 45 } 46 47 public static void setCurrent(SimpleSubject subject) { 48 _current.set(subject); 49 } 50 51 public SimpleSubject(String username, String password) { 52 _username = username; 53 _password = password; 54 } 55 56 public String getUsername() { 57 return _username; 58 } 59 60 public String getPassword() { 61 return _password; 62 } 63 64 public int getFlags() { 65 return _flags; 66 } 67 68 public void setFlags(int flags) { 69 _flags = flags; 70 } 71 } 72 | Popular Tags |