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

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


     return new X509Token(cert, issuerSerial.getDocument());
   }

   public X509Certificate resolveCertificate(SecurityTokenReference reference) throws WSSecurityException
   {
      BinarySecurityToken token = resolve(reference);

      if (! (token instanceof X509Token))
         throw new WSSecurityException("Expected X509Token, cache contained: " + token.getClass().getName());

      return ((X509Token)token).getCert();
   }
View Full Code Here


         // 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();

         // Obtain the canonicalizer specified in the transformation parameters
         Element parameters = XMLUtils.selectNode(transformObject.getElement().getFirstChild(), Constants.WSSE_NS,
               "TransformationParameters", 0);
         if (parameters == null)
View Full Code Here

/*     */
/*     */   private BinarySecurityToken resolveDirectReference(DirectReference direct) throws WSSecurityException
/*     */   {
/* 100 */     String id = direct.getUri().substring(1);
/*     */
/* 102 */     BinarySecurityToken token = (BinarySecurityToken)this.tokenCache.get(id);
/* 103 */     if (token == null) {
/* 104 */       throw new SecurityTokenUnavailableException("Could not resolve token id: " + id);
/*     */     }
/* 106 */     return token;
/*     */   }
View Full Code Here

/* 124 */     return new X509Token(cert, issuerSerial.getDocument());
/*     */   }
/*     */
/*     */   public X509Certificate resolveCertificate(SecurityTokenReference reference) throws WSSecurityException
/*     */   {
/* 129 */     BinarySecurityToken token = resolve(reference);
/*     */
/* 131 */     if (!(token instanceof X509Token)) {
/* 132 */       throw new WSSecurityException("Expected X509Token, cache contained: " + token.getClass().getName());
/*     */     }
/* 134 */     return ((X509Token)token).getCert();
/*     */   }
View Full Code Here

/*     */       }
/*     */
/* 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();
/*     */
/* 118 */       Element parameters = XMLUtils.selectNode(this._transformObject.getElement().getFirstChild(), "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "TransformationParameters", 0);
/*     */
/* 120 */       if (parameters == null) {
/* 121 */         throw new TransformationException("wsse:TransformationParameters expected!");
View Full Code Here

TOP

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

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.