Package org.jboss.ws.extensions.security

Examples of org.jboss.ws.extensions.security.BinarySecurityTokenValidator


   public SecurityHeader(Element element, SecurityStore store) throws WSSecurityException
   {
      document = element.getOwnerDocument();
      KeyResolver resolver = new KeyResolver(store);
      BinarySecurityTokenValidator validator = new BinarySecurityTokenValidator(store);
      Element child = Util.getFirstChildElement(element);
      while  (child != null)
      {
         String tag = child.getLocalName();

         if (tag.equals("BinarySecurityToken"))
         {
            BinarySecurityToken token = BinarySecurityToken.createBinarySecurityToken(child);
            validator.validateToken(token);
            resolver.cacheToken(token);
            tokens.add(token);
         }
         else if (tag.equals("UsernameToken"))
            tokens.add(new UsernameToken(child));
View Full Code Here


   public SecurityHeader(Element element, SecurityStore store) throws WSSecurityException
   {
      document = element.getOwnerDocument();
      KeyResolver resolver = new KeyResolver(store);
      BinarySecurityTokenValidator validator = new BinarySecurityTokenValidator(store);
      Element child = Util.getFirstChildElement(element);
      while  (child != null)
      {
         String tag = child.getLocalName();

         if (tag.equals("BinarySecurityToken"))
         {
            BinarySecurityToken token = BinarySecurityToken.createBinarySecurityToken(child);
            validator.validateToken(token);
            resolver.cacheToken(token);
            tokens.add(token);
         }
         else if (tag.equals("UsernameToken"))
            tokens.add(new UsernameToken(child));
View Full Code Here

   public SecurityHeader(Element element, SecurityStore store) throws WSSecurityException
   {
      document = element.getOwnerDocument();
      KeyResolver resolver = new KeyResolver(store);
      BinarySecurityTokenValidator validator = new BinarySecurityTokenValidator(store);
      Element child = Util.getFirstChildElement(element);
      while  (child != null)
      {
         String tag = child.getLocalName();

         if (tag.equals("BinarySecurityToken"))
         {
            BinarySecurityToken token = BinarySecurityToken.createBinarySecurityToken(child);
            validator.validateToken(token);
            resolver.cacheToken(token);
            tokens.add(token);
         }
         else if (tag.equals("UsernameToken"))
            tokens.add(new UsernameToken(child));
View Full Code Here

   public SecurityHeader(Element element, SecurityStore store, List<String> allowedKeyWrapAlgorithms, List<String> allowedEncAlgorithms) throws WSSecurityException
   {
      document = element.getOwnerDocument();
      KeyResolver resolver = new KeyResolver(store);
      BinarySecurityTokenValidator validator = new BinarySecurityTokenValidator(store);
      Element child = Util.getFirstChildElement(element);
      while  (child != null)
      {
         String tag = child.getLocalName();

         if (tag.equals("BinarySecurityToken"))
         {
            BinarySecurityToken token = BinarySecurityToken.createBinarySecurityToken(child);
            validator.validateToken(token);
            resolver.cacheToken(token);
            tokens.add(token);
         }
         else if (tag.equals("UsernameToken"))
            tokens.add(new UsernameToken(child));
View Full Code Here

/*     */
/*     */   public SecurityHeader(Element element, SecurityStore store) throws WSSecurityException
/*     */   {
/*  67 */     this.document = element.getOwnerDocument();
/*  68 */     KeyResolver resolver = new KeyResolver(store);
/*  69 */     BinarySecurityTokenValidator validator = new BinarySecurityTokenValidator(store);
/*  70 */     Element child = Util.getFirstChildElement(element);
/*  71 */     while (child != null)
/*     */     {
/*  73 */       String tag = child.getLocalName();
/*     */
/*  75 */       if (tag.equals("BinarySecurityToken"))
/*     */       {
/*  77 */         BinarySecurityToken token = BinarySecurityToken.createBinarySecurityToken(child);
/*  78 */         validator.validateToken(token);
/*  79 */         resolver.cacheToken(token);
/*  80 */         this.tokens.add(token);
/*     */       }
/*  82 */       else if (tag.equals("UsernameToken")) {
/*  83 */         this.tokens.add(new UsernameToken(child));
View Full Code Here

   public SecurityHeader(Element element, SecurityStore store) throws WSSecurityException
   {
      document = element.getOwnerDocument();
      KeyResolver resolver = new KeyResolver(store);
      BinarySecurityTokenValidator validator = new BinarySecurityTokenValidator(store);
      Element child = Util.getFirstChildElement(element);
      while  (child != null)
      {
         String tag = child.getLocalName();

         if (tag.equals("BinarySecurityToken"))
         {
            BinarySecurityToken token = BinarySecurityToken.createBinarySecurityToken(child);
            validator.validateToken(token);
            resolver.cacheToken(token);
            tokens.add(token);
         }
         else if (tag.equals("UsernameToken"))
            tokens.add(new UsernameToken(child));
View Full Code Here

TOP

Related Classes of org.jboss.ws.extensions.security.BinarySecurityTokenValidator

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.