站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 messaging API Documentation 英文版文档

SecurityMetadata (JBoss Messaging API) - JBoss 3.2.7 messaging API Documentation 英文版文档


org.jboss.mq.security
Class SecurityMetadata

java.lang.Object
  extended byorg.jboss.mq.security.SecurityMetadata

public class SecurityMetadata
extends Object

SecurityMetadata.java Created: Tue Feb 26 15:02:29 2002

Version:
Author:
Peter

Constructor Summary
SecurityMetadata()
           
SecurityMetadata(Element conf)
           
SecurityMetadata(String conf)
          Create with given xml @see configure.
 
Method Summary
 void addRole(org.jboss.mq.security.SecurityMetadata.Role r)
           
 void addRole(String name, boolean read, boolean write, boolean create)
           
 void configure(Element sec)
           
 void configure(String conf)
          Configure with an xml string.
 Set getCreatePrincipals()
           
 Set getReadPrincipals()
           
 Set getWritePrincipals()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityMetadata

public SecurityMetadata()

SecurityMetadata

public SecurityMetadata(String conf)
                 throws Exception
Create with given xml @see configure. If the configure script is null, a default role named guest will be created with read and write access, but no create access.


SecurityMetadata

public SecurityMetadata(Element conf)
                 throws Exception
Method Detail

configure

public void configure(String conf)
               throws Exception
Configure with an xml string. The format of the string is: There may be one or more role elements.

Throws:
Exception

configure

public void configure(Element sec)
               throws Exception
Throws:
Exception

addRole

public void addRole(String name,
                    boolean read,
                    boolean write,
                    boolean create)

addRole

public void addRole(org.jboss.mq.security.SecurityMetadata.Role r)

getReadPrincipals

public Set getReadPrincipals()

getWritePrincipals

public Set getWritePrincipals()

getCreatePrincipals

public Set getCreatePrincipals()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.