congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AuthorizationException.<init>
Code IndexAdd Tabnine 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)

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
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Reference (javax.naming)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Table (org.hibernate.mapping)
    A relational table
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now