1 22 package org.jboss.annotation.security; 23 24 import org.jboss.annotation.security.SecurityDomain; 25 26 32 public class SecurityDomainImpl implements SecurityDomain 33 { 34 private String value; 35 private String unauthenticatedPrincipal = null; 36 37 public SecurityDomainImpl(String value) 38 { 39 this.value = value; 40 } 41 42 public String value() 43 { 44 return value; 45 } 46 47 public String unauthenticatedPrincipal() 48 { 49 return unauthenticatedPrincipal; 50 } 51 52 public void setUnauthenticatedPrincipal(String unauthenticatedPrincipal) 53 { 54 this.unauthenticatedPrincipal = unauthenticatedPrincipal; 55 } 56 57 public Class annotationType() 58 { 59 return org.jboss.annotation.security.SecurityDomain.class; 60 } 61 62 public String toString() 63 { 64 StringBuffer sb = new StringBuffer (100); 65 sb.append("SecurityDomainImpl["); 66 sb.append("value=").append(value); 67 sb.append(", unauthenticatedPrincipal=").append(unauthenticatedPrincipal); 68 sb.append("]"); 69 return sb.toString(); 70 } 71 } 72 | Popular Tags |