All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Glacier2.SSLPermissionsVerifierPrx Maven / Gradle / Ivy

There is a newer version: 3.7.10
Show newest version
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.7
//
// 
//
// Generated from file `PermissionsVerifier.ice'
//
// Warning: do not edit this file.
//
// 
//

package Glacier2;

/**
 * The SSL Glacier2 permissions verifier. This is called through the
 * process of establishing a session.
 *
 * @see Router
 *
 **/
public interface SSLPermissionsVerifierPrx extends Ice.ObjectPrx
{
    /**
     * Check whether a user has permission to access the router.
     *
     * @param info The SSL information.
     *
     * @param reason The reason why access was denied.
     *
     * @return True if access is granted, or false otherwise.
     *
     * @throws PermissionDeniedException Raised if the user access is
     * denied. This can be raised in place of returning false with a
     * reason set in the reason out parameter.
     *
     * @see SSLInfo
     *
     **/
    public boolean authorize(SSLInfo info, Ice.StringHolder reason)
        throws PermissionDeniedException;

    /**
     * Check whether a user has permission to access the router.
     *
     * @param info The SSL information.
     *
     * @param reason The reason why access was denied.
     *
     * @param context The Context map to send with the invocation.
     * @return True if access is granted, or false otherwise.
     *
     * @throws PermissionDeniedException Raised if the user access is
     * denied. This can be raised in place of returning false with a
     * reason set in the reason out parameter.
     *
     * @see SSLInfo
     *
     **/
    public boolean authorize(SSLInfo info, Ice.StringHolder reason, java.util.Map context)
        throws PermissionDeniedException;

    /**
     * Check whether a user has permission to access the router.
     *
     * @param info The SSL information.
     *
     * @return The asynchronous result object.
     **/
    public Ice.AsyncResult begin_authorize(SSLInfo info);

    /**
     * Check whether a user has permission to access the router.
     *
     * @param info The SSL information.
     *
     * @param context The Context map to send with the invocation.
     * @return The asynchronous result object.
     **/
    public Ice.AsyncResult begin_authorize(SSLInfo info, java.util.Map context);

    /**
     * Check whether a user has permission to access the router.
     *
     * @param info The SSL information.
     *
     * @param cb The asynchronous callback object.
     * @return The asynchronous result object.
     **/
    public Ice.AsyncResult begin_authorize(SSLInfo info, Ice.Callback cb);

    /**
     * Check whether a user has permission to access the router.
     *
     * @param info The SSL information.
     *
     * @param context The Context map to send with the invocation.
     * @param cb The asynchronous callback object.
     * @return The asynchronous result object.
     **/
    public Ice.AsyncResult begin_authorize(SSLInfo info, java.util.Map context, Ice.Callback cb);

    /**
     * Check whether a user has permission to access the router.
     *
     * @param info The SSL information.
     *
     * @param cb The asynchronous callback object.
     * @return The asynchronous result object.
     **/
    public Ice.AsyncResult begin_authorize(SSLInfo info, Callback_SSLPermissionsVerifier_authorize cb);

    /**
     * Check whether a user has permission to access the router.
     *
     * @param info The SSL information.
     *
     * @param context The Context map to send with the invocation.
     * @param cb The asynchronous callback object.
     * @return The asynchronous result object.
     **/
    public Ice.AsyncResult begin_authorize(SSLInfo info, java.util.Map context, Callback_SSLPermissionsVerifier_authorize cb);

    public interface FunctionalCallback_SSLPermissionsVerifier_authorize_Response
    {
        void apply(boolean ret, String reason);
    }

    /**
     * Check whether a user has permission to access the router.
     *
     * @param info The SSL information.
     *
     * @param responseCb The lambda response callback.
     * @param userExceptionCb The lambda user exception callback.
     * @param exceptionCb The lambda exception callback.
     * @return The asynchronous result object.
     **/
    public Ice.AsyncResult begin_authorize(SSLInfo info,
                                           FunctionalCallback_SSLPermissionsVerifier_authorize_Response responseCb,
                                           IceInternal.Functional_GenericCallback1 userExceptionCb,
                                           IceInternal.Functional_GenericCallback1 exceptionCb);

    /**
     * Check whether a user has permission to access the router.
     *
     * @param info The SSL information.
     *
     * @param responseCb The lambda response callback.
     * @param userExceptionCb The lambda user exception callback.
     * @param exceptionCb The lambda exception callback.
     * @param sentCb The lambda sent callback.
     * @return The asynchronous result object.
     **/
    public Ice.AsyncResult begin_authorize(SSLInfo info,
                                           FunctionalCallback_SSLPermissionsVerifier_authorize_Response responseCb,
                                           IceInternal.Functional_GenericCallback1 userExceptionCb,
                                           IceInternal.Functional_GenericCallback1 exceptionCb,
                                           IceInternal.Functional_BoolCallback sentCb);

    /**
     * Check whether a user has permission to access the router.
     *
     * @param info The SSL information.
     *
     * @param context The Context map to send with the invocation.
     * @param responseCb The lambda response callback.
     * @param userExceptionCb The lambda user exception callback.
     * @param exceptionCb The lambda exception callback.
     * @return The asynchronous result object.
     **/
    public Ice.AsyncResult begin_authorize(SSLInfo info,
                                           java.util.Map context,
                                           FunctionalCallback_SSLPermissionsVerifier_authorize_Response responseCb,
                                           IceInternal.Functional_GenericCallback1 userExceptionCb,
                                           IceInternal.Functional_GenericCallback1 exceptionCb);

    /**
     * Check whether a user has permission to access the router.
     *
     * @param info The SSL information.
     *
     * @param context The Context map to send with the invocation.
     * @param responseCb The lambda response callback.
     * @param userExceptionCb The lambda user exception callback.
     * @param exceptionCb The lambda exception callback.
     * @param sentCb The lambda sent callback.
     * @return The asynchronous result object.
     **/
    public Ice.AsyncResult begin_authorize(SSLInfo info,
                                           java.util.Map context,
                                           FunctionalCallback_SSLPermissionsVerifier_authorize_Response responseCb,
                                           IceInternal.Functional_GenericCallback1 userExceptionCb,
                                           IceInternal.Functional_GenericCallback1 exceptionCb,
                                           IceInternal.Functional_BoolCallback sentCb);

    /**
     * Check whether a user has permission to access the router.
     *
     * @param reason The reason why access was denied.
     *
     * @param result The asynchronous result object.
     * @return True if access is granted, or false otherwise.
     *
     * @throws PermissionDeniedException Raised if the user access is
     * denied. This can be raised in place of returning false with a
     * reason set in the reason out parameter.
     *
     * @see SSLInfo
     *
     **/
    public boolean end_authorize(Ice.StringHolder reason, Ice.AsyncResult result)
        throws PermissionDeniedException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy