}
@Override
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authcToken) throws AuthenticationException {
NodeableAuthenticationToken token = (GatewayAuthenticaionToken) authcToken;
logger.debug("Attempting to get gateway api authentication info for" + ((GatewayAuthenticaionToken) authcToken).getToken());
Connection connection = securityService.getByApiKey(token.getToken(), GatewayProvider.TYPE);
if (connection == null) {
throw new AuthenticationException(ErrorMessages.INVALID_CREDENTIAL);
}