Package com.cloud.bridge.persist.dao

Examples of com.cloud.bridge.persist.dao.UserCredentialsDaoImpl


            //System.out.println( "cert: " + userCert.toString());             
            String uniqueId = AuthenticationUtils.X509CertUniqueId( userCert );
            logger.debug( "X509 cert's uniqueId: " + uniqueId );

            // -> find the Cloud API key and the secret key from the cert's uniqueId
            UserCredentialsDao ucDao = new UserCredentialsDaoImpl();
            UserCredentialsVO cloudKeys = ucDao.getByCertUniqueId(uniqueId);
            if ( null == cloudKeys ) {
                logger.error( "Cert does not map to Cloud API keys: " + uniqueId );
                throw new AxisFault( "User not properly registered: Certificate does not map to Cloud API Keys", "Client.Blocked" );
            }
            else UserContext.current().initContext( cloudKeys.getAccessKey(), cloudKeys.getSecretKey(), cloudKeys.getAccessKey(), "SOAP Request", null );
View Full Code Here


                //System.out.println( "cert: " + userCert.toString());
                String uniqueId = AuthenticationUtils.X509CertUniqueId(userCert);
                logger.debug("X509 cert's uniqueId: " + uniqueId);

                // -> find the Cloud API key and the secret key from the cert's uniqueId
                UserCredentialsDao ucDao = new UserCredentialsDaoImpl();
                UserCredentialsVO cloudKeys = ucDao.getByCertUniqueId(uniqueId);
                if (null == cloudKeys) {
                    logger.error("Cert does not map to Cloud API keys: " + uniqueId);
                    throw new AxisFault("User not properly registered: Certificate does not map to Cloud API Keys", "Client.Blocked");
                } else
                    UserContext.current().initContext(cloudKeys.getAccessKey(), cloudKeys.getSecretKey(), cloudKeys.getAccessKey(), "SOAP Request", null);
View Full Code Here

TOP

Related Classes of com.cloud.bridge.persist.dao.UserCredentialsDaoImpl

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.