1 10 11 package org.mule.impl.security; 12 13 import java.util.Map ; 14 15 import org.mule.umo.security.UMOAuthentication; 16 import org.mule.umo.security.UMOCredentials; 17 18 24 public class MuleAuthentication implements UMOAuthentication 25 { 26 private boolean authenticated; 27 private char[] credentials; 28 private String user; 29 private Map properties; 30 31 public MuleAuthentication(UMOCredentials credentials) 32 { 33 this.user = credentials.getUsername(); 34 this.credentials = credentials.getPassword(); 35 } 36 37 public void setAuthenticated(boolean b) 38 { 39 authenticated = b; 40 } 41 42 public boolean isAuthenticated() 43 { 44 return authenticated; 45 } 46 47 public Object getCredentials() 48 { 49 return new String (credentials); 50 } 51 52 public Object getPrincipal() 53 { 54 return user; 55 } 56 57 public Map getProperties() 58 { 59 return properties; 60 } 61 62 public void setProperties(Map properties) 63 { 64 this.properties = properties; 65 } 66 67 } 68 | Popular Tags |