001 package railo.runtime.security; 002 003 import railo.runtime.converter.ScriptConvertable; 004 import railo.runtime.exp.PageException; 005 006 /** 007 * Credential interface 008 */ 009 public interface Credential extends ScriptConvertable{ 010 011 /** 012 * @return Returns the password. 013 */ 014 public abstract String getPassword(); 015 016 /** 017 * @return Returns the roles. 018 */ 019 public abstract String[] getRoles(); 020 021 /** 022 * @return Returns the username. 023 */ 024 public abstract String getUsername(); 025 026 /** 027 * encode rhe Credential to a Base64 String value 028 * @return base64 encoded string 029 * @throws PageException 030 */ 031 public abstract String encode() throws PageException; 032 033 }