Codota Logo
AuthorizationException.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.jboss.security.authorization.AuthorizationException
constructor

Best Java code snippets using org.jboss.security.authorization.AuthorizationException.<init> (Showing top 18 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.jboss.security/jbosssx-bare

 public Object run() throws AuthorizationException 
 {
   int result = invokeAuthorize(resource);
   if(result == PERMIT)
    invokeCommit();
   if(result == DENY)
   {
    invokeAbort();
    throw new AuthorizationException("Denied"); 
   } 
   return null;
 }
});
origin: org.picketbox/picketbox

 public Object run() throws AuthorizationException
 {
   int result = invokeAuthorize(resource, modules, controlFlags);
   if (result == PERMIT)
    invokeCommit( modules, controlFlags );
   if (result == DENY)
   {
    invokeAbort( modules, controlFlags );
    throw new AuthorizationException(PicketBoxMessages.MESSAGES.authorizationFailedMessage());
   }
   return null;
 }
});
origin: org.jboss.security/jbosssx-bare

private void invokeCommit()
throws AuthorizationException
{
 int length = modules.size();
 for(int i = 0; i < length; i++)
 {
   AuthorizationModule module = (AuthorizationModule)modules.get(i); 
   boolean bool = module.commit();
   if(!bool)
    throw new AuthorizationException("commit on modules failed:"+module.getClass());
 } 
 modules.clear();
}

origin: org.jboss.security/jbosssx-bare

private void invokeTeardown() throws AuthorizationException
{
 int length = modules.size();
 for (int i = 0; i < length; i++)
 {
   ACLProvider module = modules.get(i);
   boolean bool = module.tearDown();
   if (!bool)
    throw new AuthorizationException("TearDown on module failed:" + module.getClass());
 }
 modules.clear();
}
origin: org.jboss.security/jbosssx-bare

private void invokeAbort()
throws AuthorizationException
{
 int length = modules.size();
 for(int i = 0; i < length; i++)
 {
   AuthorizationModule module = (AuthorizationModule)modules.get(i); 
   boolean bool = module.abort(); 
   if(!bool)
    throw new AuthorizationException("abort on modules failed:"+module.getClass());
 } 
 modules.clear();
}

origin: org.jboss.security/jbosssx-bare

private <T> Set<T> invokeACL(Class<T> clazz, Resource resource, Identity identity) throws AuthorizationException
{
 Set<T> entitlements = new HashSet<T>();
 int length = modules.size();
 for (int i = 0; i < length; i++)
 {
   ACLProvider module = modules.get(i);
   try
   {
    Set<T> er = module.getEntitlements(clazz, resource, identity);
    if (er == null)
      throw new AuthorizationException("module " + module.getClass().getName()
         + " generated null entitlements.");
    entitlements.addAll(er);
   }
   catch (Exception ae)
   {
    throw new AuthorizationException(ae.getMessage());
   }
 }
 return entitlements;
}
origin: org.picketbox/picketbox

private void invokeCommit( List<AuthorizationModule> modules,
   List<ControlFlag> controlFlags ) throws AuthorizationException
{
 int length = modules.size();
 for (int i = 0; i < length; i++)
 {
   AuthorizationModule module = modules.get(i);
   boolean bool = module.commit();
   if (!bool)
    throw new AuthorizationException(PicketBoxMessages.MESSAGES.moduleCommitFailedMessage());
 }
}
origin: org.picketbox/picketbox

private void invokeAbort( List<AuthorizationModule> modules,
   List<ControlFlag> controlFlags ) throws AuthorizationException
{
 int length = modules.size();
 for (int i = 0; i < length; i++)
 {
   AuthorizationModule module = modules.get(i);
   boolean bool = module.abort();
   if (!bool)
    throw new AuthorizationException(PicketBoxMessages.MESSAGES.moduleAbortFailedMessage());
 }
}
origin: org.jboss.security/jbosssx-bare

     moduleException = new AuthorizationException(ae.getMessage());
     log.trace("REQUISITE failed for " + module); 
   if(moduleException == null)
     moduleException = new AuthorizationException("Authorization failed");
   else
     throw moduleException;
  throw new AuthorizationException("Authorization Failed:"+ msg);
if(overallDecision == DENY && encounteredOptionalError)
  throw new AuthorizationException("Authorization Failed:" + msg);
if(overallDecision == DENY)
  throw new AuthorizationException("Authorization Failed:Denied.");
return PERMIT;
origin: org.jboss.security/jbosssx-bare

throw new AuthorizationException(ae.getMessage());
origin: org.jboss.security/jbosssx-bare

throw new AuthorizationException("Unable to process permission of type " + permission.getClass());
origin: org.picketbox/picketbox-acl-impl

public boolean isAccessGranted(Resource resource, Identity identity, ACLPermission permission)
   throws AuthorizationException
{
 ACL acl = this.retrieveACL(resource);
 if (acl != null)
 {
   ACLEntry entry = acl.getEntry(identity);
   if (entry != null)
   {
    // check the permission associated with the identity.
    return entry.checkPermission(permission);
   }
   // no entry for identity = deny access
   return false;
 }
 else
   throw new AuthorizationException(PicketBoxMessages.MESSAGES.unableToLocateACLForResourceMessage(
       resource != null ? resource.toString() : null));
}
origin: org.picketbox/picketbox

     moduleException = new AuthorizationException(ae.getMessage());
     moduleException = new AuthorizationException(PicketBoxMessages.MESSAGES.authorizationFailedMessage());
   else
     throw moduleException;
  throw new AuthorizationException(PicketBoxMessages.MESSAGES.authorizationFailedMessage() + msg);
if (overallDecision == DENY && encounteredOptionalError)
  throw new AuthorizationException(PicketBoxMessages.MESSAGES.authorizationFailedMessage() + msg);
if (overallDecision == DENY)
  throw new AuthorizationException(PicketBoxMessages.MESSAGES.authorizationFailedMessage());
return PERMIT;
origin: org.picketbox/picketbox

public boolean isAccessGranted(Resource resource, Identity identity, ACLPermission permission)
   throws AuthorizationException
{
 ACL acl = this.retrieveACL(resource);
 if (acl != null)
 {
   ACLEntry entry = acl.getEntry(identity);
   if (entry != null)
   {
    // check the permission associated with the identity.
    return entry.checkPermission(permission);
   }
   // no entry for identity = deny access
   return false;
 }
 else
   throw new AuthorizationException(PicketBoxMessages.MESSAGES.unableToLocateACLForResourceMessage(
       resource != null ? resource.toString() : null));
}
origin: org.picketbox/picketbox-acl-impl

   throw new AuthorizationException(PicketBoxMessages.MESSAGES.unableToLocateACLForResourceMessage(
       resource != null ? resource.toString() : null));
throw new AuthorizationException(PicketBoxMessages.MESSAGES.unableToLocateACLWithNoStrategyMessage());
origin: org.picketbox/picketbox

   throw new AuthorizationException(PicketBoxMessages.MESSAGES.unableToLocateACLForResourceMessage(
       resource != null ? resource.toString() : null));
throw new AuthorizationException(PicketBoxMessages.MESSAGES.unableToLocateACLWithNoStrategyMessage());
origin: org.picketbox/picketbox-bare

throw new AuthorizationException(PicketBoxMessages.MESSAGES.authorizationFailedMessage());
origin: org.picketbox/picketbox

throw new AuthorizationException(PicketBoxMessages.MESSAGES.authorizationFailedMessage());
org.jboss.security.authorizationAuthorizationException<init>

Popular methods of AuthorizationException

  • getLocalizedMessage

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now