return atlasCache.get(cacheID).auth_token;
}
}
// contact the ATLAS server and get the credentials
AuthTokenDispenser dispenser = null;
try
{
org.omg.CORBA.Object obj = orb.string_to_object(locator);
dispenser = AuthTokenDispenserHelper.narrow(obj);
}
catch (Exception e)
{
logger.error("Could not find ATLAS server {}", locator, e);
throw new org.omg.CORBA.NO_PERMISSION("SAS Could not find ATLAS server " + locator + ": " + e, MinorCodes.SAS_ATLAS_FAILURE, CompletionStatus.COMPLETED_NO);
}
if (dispenser == null)
{
logger.error ("SAS found null ATLAS server {}", locator);
throw new org.omg.CORBA.NO_PERMISSION("SAS found null ATLAS server "+locator,
MinorCodes.SAS_ATLAS_FAILURE,
CompletionStatus.COMPLETED_NO);
}
AuthTokenData data = null;
try
{
data = dispenser.get_my_authorization_token();
}
catch (Exception e)
{
logger.warn("Error getting ATLAS tokens from server {}", locator, e);