Package org.jboss.ws.extensions.security.element

Examples of org.jboss.ws.extensions.security.element.ReferenceList


/*     */
/*     */   public Collection<String> process(Document message, SecurityProcess process) throws WSSecurityException
/*     */   {
/* 128 */     Collection ids = new HashSet();
/* 129 */     EncryptedKey key = (EncryptedKey)process;
/* 130 */     ReferenceList list = key.getReferenceList();
/* 131 */     for (String uri : list.getAllReferences())
/*     */     {
/* 133 */       Element element = Util.findElementByWsuId(message.getDocumentElement(), uri);
/* 134 */       if (element == null) {
/* 135 */         throw new WSSecurityException("A reference list refered to an element that was not found: " + uri);
/*     */       }
View Full Code Here


/*     */     catch (XMLSecurityException e)
/*     */     {
/* 142 */       throw new WSSecurityException("Error initializing xml cipher" + e.getMessage(), e);
/*     */     }
/*     */
/* 145 */     ReferenceList list = new ReferenceList();
/*     */
/* 147 */     if ((targets == null) || (targets.size() == 0))
/*     */     {
/* 150 */       String namespace = message.getDocumentElement().getNamespaceURI();
/* 151 */       processTarget(cipher, message, new QNameTarget(new QName(namespace, "Body"), true), list, secretKey);
View Full Code Here

TOP

Related Classes of org.jboss.ws.extensions.security.element.ReferenceList

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.