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

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


         throw new WSSecurityException("Empty KeyInfo");

      if (! child.getLocalName().equals("SecurityTokenReference"))
         throw new WSSecurityException("KeyInfo did not contain expected SecurityTokenReference, instead got: " + child.getLocalName());

      return new SecurityTokenReference(child);
   }
View Full Code Here


         token = new X509Token(cert, message);
         if (tokenRefType == null || Reference.DIRECT_REFERENCE.equals(tokenRefType))
            header.addToken(token);
      }

      SecurityTokenReference reference = new SecurityTokenReference(Reference.getReference(tokenRefType, message, token));
      sig.getKeyInfo().addUnknownElement(reference.getElement());

      header.addSecurityProcess(new Signature(sig));
   }
View Full Code Here

         if (! input.isElement())
            throw new NotImplementedException("Only element input is supported");

         // Resolve the BinarySecurityToken associated with this SecurityTokenReference
         Element element = (Element)input.getSubNode();
         SecurityTokenReference ref = new SecurityTokenReference(element);
         KeyResolver resolver = new KeyResolver(store);
         BinarySecurityToken token = resolver.resolve(ref);

         // Get the specially formated dom element for this element
         element = token.getSTRTransformElement();
View Full Code Here

/*  63 */       throw new WSSecurityException("Empty KeyInfo");
/*     */     }
/*  65 */     if (!child.getLocalName().equals("SecurityTokenReference")) {
/*  66 */       throw new WSSecurityException("KeyInfo did not contain expected SecurityTokenReference, instead got: " + child.getLocalName());
/*     */     }
/*  68 */     return new SecurityTokenReference(child);
/*     */   }
View Full Code Here

/* 105 */       if (!input.isElement()) {
/* 106 */         throw new NotImplementedException("Only element input is supported");
/*     */       }
/*     */
/* 109 */       Element element = (Element)input.getSubNode();
/* 110 */       SecurityTokenReference ref = new SecurityTokenReference(element);
/* 111 */       KeyResolver resolver = new KeyResolver(store);
/* 112 */       BinarySecurityToken token = resolver.resolve(ref);
/*     */
/* 115 */       element = token.getSTRTransformElement();
/*     */
View Full Code Here

/*     */     {
/* 169 */       token = new X509Token(cert, message);
/* 170 */       this.header.addToken(token);
/*     */     }
/*     */
/* 173 */     SecurityTokenReference reference = new SecurityTokenReference(new DirectReference(message, token));
/* 174 */     sig.getKeyInfo().addUnknownElement(reference.getElement());
/*     */
/* 176 */     this.header.addSecurityProcess(new Signature(sig));
/*     */   }
View Full Code Here

TOP

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

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.