public boolean checkAliasAccess(Subject authenticatedSubject,
                                    String destination, String aliasDestination, int destinationType, String operationType) throws MessagingAuthorizationException {
        SibTr.entry(tc, CLASS_NAME + "checkAliasAccess", new Object[] { authenticatedSubject, destination,
                                                                       operationType, aliasDestination });
        boolean result = false;
        if (!runtimeSecurityService.isMessagingSecure()) {
            result = true;
        } else {
            if (messagingAuthorizationService != null) {
                result = messagingAuthorizationService.checkAliasAccess(authenticatedSubject, destination, aliasDestination, destinationType, operationType, true);
            }
        }
        SibTr.exit(tc, CLASS_NAME + "checkAliasAccess", result);
        return result;
    }
public boolean checkAliasAccess ( Subject authenticatedSubject , String destination , String aliasDestination , int destinationType , String operationType ) throws MessagingAuthorizationException { SibTr . entry ( tc , CLASS_NAME + "checkAliasAccess" , new Object [ ] { authenticatedSubject , destination , operationType , aliasDestination } ) ; boolean result = false ; if ( ! runtimeSecurityService . isMessagingSecure ( ) ) { result = true ; } else { if ( messagingAuthorizationService != null ) { result = messagingAuthorizationService . checkAliasAccess ( authenticatedSubject , destination , aliasDestination , destinationType , operationType , true ) ; } } SibTr . exit ( tc , CLASS_NAME + "checkAliasAccess" , result ) ; return result ; }
Checks if the User passed has access to the alias to perform an action
<ul>
<li> When Messaging Security is disabled, it always returns true </li>
<li> When Messaging Security is enabled, it calls
MessagingAuthorizationService to check for access </li>
</ul>

@param authenticatedSubject
Subject got after authenticating the user
@param destination
Target Destination for the alias destination
@param destinationType
@param aliasDesination
Alias Destination which user is requesting to access
@param operationType
Type of operation (SEND, RECEIVE, BROWSE)
@return true : If the User is authorized
false: If the User is not authorized