Package org.apache.airavata.core.gfac.context.security.impl

Examples of org.apache.airavata.core.gfac.context.security.impl.AmazonSecurityContext


                    OMElement amazon = x.getFirstChildWithName(new QName(null, AMAZON));

                    if (amazon != null) {

                        AmazonSecurityContext amazonSecurityContext = new AmazonSecurityContext();

                        OMElement accessKey = amazon.getFirstChildWithName(new QName(null, ACCESS_KEY_ID));
                        OMElement secretKey = amazon.getFirstChildWithName(new QName(null, SECRET_ACCESS_KEY));

                        amazonSecurityContext.setAccessKey(accessKey.getText());
                        amazonSecurityContext.setSecretKey(secretKey.getText());

                        // set to context
                        MessageContextUtil.addContextToProperty(msgContext, GFacService.SECURITY_CONTEXT, "amazon",
                                amazonSecurityContext);
                    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.core.gfac.context.security.impl.AmazonSecurityContext

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.