Package org.jboss.security

Examples of org.jboss.security.ISecurityManagement


    /** {@inheritDoc} */
    @Override
    public void start(StartContext context) throws StartException {
        if (log.isDebugEnabled())
            log.debug("Starting SubjectFactoryService");
        final ISecurityManagement injectedSecurityManagement = securityManagementValue.getValue();
        int i = subjectFactoryClassName.lastIndexOf(":");
        if (i == -1)
            throw new StartException("Missing module name for the subject-factory-class-name attribute");
        String moduleSpec = subjectFactoryClassName.substring(0, i);
        String className = subjectFactoryClassName.substring(i + 1);
View Full Code Here


    /** {@inheritDoc} */
    @Override
    public synchronized void start(StartContext context) throws StartException {
        log.debugf("Starting SubjectFactoryService");
        final ISecurityManagement injectedSecurityManagement = securityManagementValue.getValue();
        int i = subjectFactoryClassName.lastIndexOf(":");
        if (i == -1)
            throw SecurityLogger.ROOT_LOGGER.missingModuleName("subject-factory-class-name attribute");
        String moduleSpec = subjectFactoryClassName.substring(0, i);
        String className = subjectFactoryClassName.substring(i + 1);
View Full Code Here

    /** {@inheritDoc} */
    @Override
    public synchronized void start(StartContext context) throws StartException {
        if (log.isDebugEnabled())
            log.debug("Starting SubjectFactoryService");
        final ISecurityManagement injectedSecurityManagement = securityManagementValue.getValue();
        int i = subjectFactoryClassName.lastIndexOf(":");
        if (i == -1)
            throw new StartException("Missing module name for the subject-factory-class-name attribute");
        String moduleSpec = subjectFactoryClassName.substring(0, i);
        String className = subjectFactoryClassName.substring(i + 1);
View Full Code Here

    /** {@inheritDoc} */
    @Override
    public synchronized void start(StartContext context) throws StartException {
        log.debugf("Starting SubjectFactoryService");
        final ISecurityManagement injectedSecurityManagement = securityManagementValue.getValue();
        int i = subjectFactoryClassName.lastIndexOf(":");
        if (i == -1)
            throw SecurityMessages.MESSAGES.missingModuleName("subject-factory-class-name attribute");
        String moduleSpec = subjectFactoryClassName.substring(0, i);
        String className = subjectFactoryClassName.substring(i + 1);
View Full Code Here

   }
  
   public void testMappingContext()
   {  
      JBossSecurityContext sc = getSC(securityDomain);
      ISecurityManagement ism = sc.getSecurityManagement();
      assertNotNull("Security Management is not null", ism);
      MappingContext<RoleGroup> mc = sc.getMappingManager().getMappingContext(RoleGroup.class);
      assertNotNull("Mapping Context is not null", mc);
      List<?> modules = mc.getModules();
      assertNotNull("Mapping modules not null", modules);
View Full Code Here

   }
  
   public void testManagersFromJBossSecurityContext() throws Exception
   {
      JBossSecurityContext sc = this.getSC("other");
      ISecurityManagement ism = sc.getSecurityManagement();
      assertNotNull("Security Management is not null", ism);
      AuthenticationManager authManager = sc.getAuthenticationManager();
      assertNotNull("AuthenticationManager is not null", authManager);
      AuthorizationManager authorizationMgr = sc.getAuthorizationManager();
      assertNotNull("AuthorizationManager is not null", authorizationMgr);
View Full Code Here

    /** {@inheritDoc} */
    @Override
    public synchronized void start(StartContext context) throws StartException {
        log.debugf("Starting SubjectFactoryService");
        final ISecurityManagement injectedSecurityManagement = securityManagementValue.getValue();
        int i = subjectFactoryClassName.lastIndexOf(":");
        if (i == -1)
            throw new StartException("Missing module name for the subject-factory-class-name attribute");
        String moduleSpec = subjectFactoryClassName.substring(0, i);
        String className = subjectFactoryClassName.substring(i + 1);
View Full Code Here

TOP

Related Classes of org.jboss.security.ISecurityManagement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.