class KeyService {

    public EnumSet<PossibleActionEnum> getPossibleActionsForKey(String keyId) throws KeyNotFoundException {
        TokenInfo tokenInfo = tokenService.getTokenForKeyId(keyId);
        KeyInfo keyInfo = getKey(tokenInfo, keyId);
        EnumSet<PossibleActionEnum> possibleActions = possibleActionsRuleEngine
                .getPossibleKeyActions(tokenInfo, keyInfo);
        return possibleActions;
    }

    @Autowired public  KeyService(TokenService tokenService, SignerProxyFacade signerProxyFacade,
            PossibleActionsRuleEngine possibleActionsRuleEngine,
            ManagementRequestSenderService managementRequestSenderService,
            SecurityHelper securityHelper,
            AuditDataHelper auditDataHelper,
            AuditEventHelper auditEventHelper,
            AuditEventLoggingFacade auditEventLoggingFacade);

}