Package org.omg.ATLAS

Examples of org.omg.ATLAS.AuthTokenDispenser


                return ((AuthTokenData)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.warn("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)
        {
            if (logger.isWarnEnabled())
                logger.warn("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)
        {
            if (logger.isWarnEnabled())
                logger.warn("Error getting ATLAS tokens from server " +
View Full Code Here


                return ((AuthTokenData)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.warn("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)
        {
            if (logger.isWarnEnabled())
                logger.warn("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)
        {
            if (logger.isWarnEnabled())
                logger.warn("Error getting ATLAS tokens from server " +
View Full Code Here

                return ((AuthTokenData)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.warn("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)
        {
            if (logger.isWarnEnabled())
                logger.warn("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)
        {
            if (logger.isWarnEnabled())
                logger.warn("Error getting ATLAS tokens from server " +
View Full Code Here

                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);
View Full Code Here

TOP

Related Classes of org.omg.ATLAS.AuthTokenDispenser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.