Examples of Authorizer


Examples of net.webpasswordsafe.server.plugin.authorization.Authorizer

   
    @SuppressWarnings("unchecked")
    private boolean isAuthorized(HttpServletRequest req, String action)
    {
        boolean isAuthorized = false;
        Authorizer authorizer = (Authorizer)WebApplicationContextUtils.getWebApplicationContext(getServletContext()).getBean("authorizer");
        User user = new User();
        user.setUsername((String)req.getSession().getAttribute(Constants.SESSION_KEY_USERNAME));
        user.setRoles((Set<Constants.Role>)req.getSession().getAttribute(Constants.SESSION_KEY_ROLES));
        try
        {
            isAuthorized = authorizer.isAuthorized(user, action);
        }
        catch (Exception e)
        {
            isAuthorized = false;
        }
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.Authorizer

  public static void setDatabaseProperty(String key, String value) throws SQLException
  {
    LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

    try {
    Authorizer a = lcc.getAuthorizer();
    a.authorize((Activation) null, Authorizer.PROPERTY_WRITE_OP);

        // Get the current transaction controller
        TransactionController tc = lcc.getTransactionExecute();

    tc.setProperty(key, value, false);
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.Authorizer

  public static void setDatabaseProperty(String key, String value) throws SQLException
  {
    LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

    try {
    Authorizer a = lcc.getAuthorizer();
    a.authorize((Activation) null, Authorizer.PROPERTY_WRITE_OP);

        // Get the current transaction controller
        TransactionController tc = lcc.getTransactionExecute();

    tc.setProperty(key, value, false);
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.Authorizer

    LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

    try {
            SecurityUtil.authorize( Securable.SET_DATABASE_PROPERTY );
           
    Authorizer a = lcc.getAuthorizer();
    a.authorize((Activation) null, Authorizer.PROPERTY_WRITE_OP);

        // Get the current transaction controller
        TransactionController tc = lcc.getTransactionExecute();

    tc.setProperty(key, value, false);
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.Authorizer

        LanguageConnectionContext lcc = (LanguageConnectionContext)
        ContextService.getContextOrNull( LanguageConnectionContext.CONTEXT_ID );

        if ( lcc.usesSqlAuthorization() )
        {
            Authorizer   authorizer = lcc.getAuthorizer();

            DataDictionary dd = lcc.getDataDictionary();
            AliasDescriptor ad = dd.getRoutineList
                (
                 operation.routineSchemaID,
                 operation.routineName,
                 operation.routineType
                 ).get( 0 );
            ArrayList<StatementPermission>   requiredPermissions = new ArrayList<StatementPermission>();
            StatementRoutinePermission  executePermission = new StatementRoutinePermission( ad.getObjectID() );

            requiredPermissions.add( executePermission );

            authorizer.authorize( requiredPermissions, lcc.getLastActivation() );
        }
    }
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.Authorizer

            if ( authorizationCheck != null )
            {
                SecurityUtil.authorize( authorizationCheck );
            }
           
            Authorizer a = lcc.getAuthorizer();
            a.authorize((Activation) null, Authorizer.PROPERTY_WRITE_OP);

            // Get the current transaction controller
            TransactionController tc = lcc.getTransactionExecute();

            tc.setProperty(key, value, false);
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.Authorizer

  public static void setDatabaseProperty(String key, String value) throws SQLException
  {
    LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

    try {
    Authorizer a = lcc.getAuthorizer();
    a.authorize(Authorizer.PROPERTY_WRITE_OP);

        // Get the current transaction controller
        TransactionController tc = lcc.getTransactionExecute();

    tc.setProperty(key, value, false);
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.Authorizer

  public static void setDatabaseProperty(String key, String value) throws SQLException
  {
    LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

    try {
    Authorizer a = lcc.getAuthorizer();
    a.authorize((Activation) null, Authorizer.PROPERTY_WRITE_OP);

        // Get the current transaction controller
        TransactionController tc = lcc.getTransactionExecute();

    tc.setProperty(key, value, false);
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.Authorizer

  public static void setDatabaseProperty(String key, String value) throws SQLException
  {
    LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

    try {
    Authorizer a = lcc.getAuthorizer();
    a.authorize(Authorizer.PROPERTY_WRITE_OP);

        // Get the current transaction controller
        TransactionController tc = lcc.getTransactionExecute();

    tc.setProperty(key, value, false);
View Full Code Here

Examples of org.apache.geronimo.tomcat.security.Authorizer

        } else {
            authenticator = new NoneAuthenticator(unauthenticatedIdentity);
        }

        AccessControlContext defaultAcc = ContextManager.registerSubjectShort(defaultSubject,  null, null);
        Authorizer authorizer = createAuthorizer(defaultAcc);

        SecurityValve securityValve = new JACCSecurityValve(authenticator, authorizer, identityService, policyContextId);

        geronimoContext.addValve(securityValve);
        if (log.isDebugEnabled()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.