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

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


/*     */   }
/*     */
/*     */   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);
/*     */       }
/* 137 */       if (!isEncryptedData(element)) {
/* 138 */         throw new WSSecurityException("Malformed reference list, a non encrypted data element was referenced: " + uri);
/*     */       }
/* 140 */       ids.add(decryptElement(element, key.getSecretKey()));
/*     */     }
/*     */
/* 143 */     return ids;
/*     */   }
View Full Code Here


/*     */     {
/* 165 */       token = new X509Token(cert, message);
/* 166 */       this.header.addToken(token);
/*     */     }
/*     */
/* 169 */     EncryptedKey eKey = new EncryptedKey(message, secretKey, token, list);
/* 170 */     this.header.addSecurityProcess(eKey);
/*     */   }
View Full Code Here

TOP

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

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.