FileDocCategorySizeDatePackage
SecurityIdentity.javaAPI DocJBoss 4.2.12343Fri Jul 13 20:53:58 BST 2007org.jboss.ejb3.metamodel

SecurityIdentity

public class SecurityIdentity extends Object
Represents a element of the ejb-jar.xml deployment descriptor for the 1.4 schema
author
William DeCoste
version
$Revision: 60233 $

Fields Summary
private String
id
private boolean
useCallerIdentity
private org.jboss.metamodel.descriptor.RunAs
runAs
private String
runAsPrincipal
Constructors Summary
Methods Summary
public java.lang.StringgetId()


     
   
      return id;
   
public org.jboss.metamodel.descriptor.RunAsgetRunAs()

      return runAs;
   
public java.lang.StringgetRunAsPrincipal()

      return runAsPrincipal;
   
public booleanisUseCallerIdentity()

      return useCallerIdentity;
   
public voidsetId(java.lang.String id)

      this.id = id;
   
public voidsetRunAs(org.jboss.metamodel.descriptor.RunAs runAs)

      this.runAs = runAs;
   
public voidsetRunAsPrincipal(java.lang.String runAsPrincipal)

      this.runAsPrincipal = runAsPrincipal;
   
public voidsetUseCallerIdentity(boolean useCallerIdentity)

      this.useCallerIdentity = useCallerIdentity;
   
public java.lang.StringtoString()

      StringBuffer sb = new StringBuffer(100);
      sb.append("[");
      sb.append("ejbName=").append(id);
      sb.append("]");
      return sb.toString();