Examples of WSTrustException


Examples of org.apache.ws.sandbox.security.trust.WSTrustException

        if(el.equals(secTokRef) && this.tokenToBeRenewed == null) {
          try {
          this.securityTokenReference = new SecurityTokenReference(elem);
          } catch (WSSecurityException ex) {
            throw new WSTrustException(WSTrustException.INVALID_REQUEST, ex.getMessage());
          }
        } else if(this.securityTokenReference == null) {
          this.tokenToBeRenewed = elem;
        }
  }
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust.WSTrustException

  /* (non-Javadoc)
   * @see org.apache.ws.security.trust.message.token.AbstractToken#setElementTextValue(org.w3c.dom.Text)
   */
  protected void setElementTextValue(Text textNode) throws WSTrustException {
    throw new WSTrustException(WSTrustException.INVALID_REQUEST,
        WSTrustException.DESC_TEXT_IN_COMPOSITE_ELEM,
        new Object[]{this.getToken().getNamespaceURI(),
        this.getToken().getLocalPart(),
        textNode.getNodeValue()});
  }
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust.WSTrustException

  /* (non-Javadoc)
   * @see org.apache.ws.security.trust.message.token.AbstractToken#deserializeElementText(org.w3c.dom.Text)
   */
  protected void setElementTextValue(Text textNode) throws WSTrustException{
    throw new WSTrustException(WSTrustException.INVALID_REQUEST,
        "There cannot be a value in this element");
  }
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust.WSTrustException

    throw new WSTrustException(WSTrustException.INVALID_REQUEST,
        "There cannot be a value in this element");
  }

  protected void deserializeChildElement(Element elem) throws WSTrustException {
    throw new WSTrustException(WSTrustException.INVALID_REQUEST,
    "There cannot be a value in this element");
  }
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust.WSTrustException

    if(el.equals(Code.TOKEN)) {
      this.codeElement = new Code(elem);
    } else if(el.equals(Reason.TOKEN)) {
      this.reasonElement = new Reason(elem);
    } else {         
      throw new WSTrustException(WSTrustException.INVALID_REQUEST,
          WSTrustException.DESC_INCORRECT_CHILD_ELEM,
        new Object[] {
          TOKEN.getPrefix(),TOKEN.getLocalPart(),
        el.getNamespaceURI(),el.getLocalPart()});
    }
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust.WSTrustException

  /* (non-Javadoc)
   * @see org.apache.ws.security.trust.message.token.AbstractToken#deserializeElement(org.w3c.dom.Element)
   */
  protected void deserializeChildElement(Element elem) throws WSTrustException {
    throw new WSTrustException(WSTrustException.INVALID_REQUEST,
    "There cannot be a child element in this element");
  }
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust.WSTrustException

  /* (non-Javadoc)
   * @see org.apache.ws.security.trust.message.token.AbstractToken#deserializeElementText(org.w3c.dom.Text)
   */
  protected void setElementTextValue(Text textNode) throws WSTrustException {
    throw new WSTrustException(WSTrustException.INVALID_REQUEST,
    "There cannot be a value in this element");
  }
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust.WSTrustException

        if(el.equals(secTokRef)) {
          try {
          this.securityTokenReference = new SecurityTokenReference(WSSConfig.getDefaultWSConfig(), elem);
          } catch (WSSecurityException ex) {
            throw new WSTrustException(WSTrustException.INVALID_REQUEST, ex.getMessage());
          }
        } else {
          this.tokenToBeRenewed = elem;
        }
  }
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust.WSTrustException

  /* (non-Javadoc)
   * @see org.apache.ws.security.trust.message.token.AbstractToken#deserializeElementText(org.w3c.dom.Text)
   */
  protected void setElementTextValue(Text textNode) throws WSTrustException{
    throw new WSTrustException(WSTrustException.INVALID_REQUEST,
        "There cannot be a value in this element");
  }
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust.WSTrustException

              this.endpointReferenceElement = elem;
              break;
            }
          }
        } else {
          throw new WSTrustException(WSTrustException.INVALID_REQUEST,
              WSTrustException.DESC_EXPECTED_CHILD_ELEM,
              new Object[]{
              TrustConstants.WSA_PREFIX, TrustConstants.ADDRESS_LN,
              TrustConstants.WSA_PREFIX, TrustConstants.ENDPOINT_REFERENCE_LN});
        }
      }
     

     
    } else {
      //If the Passed elemt is not a wsa:EndpointReference element
      throw new WSTrustException(WSTrustException.INVALID_REQUEST,
          WSTrustException.DESC_EXPECTED_CHILD_ELEM,
          new Object[]{
          TrustConstants.WSA_PREFIX, TrustConstants.ENDPOINT_REFERENCE_LN,
          TOKEN.getPrefix(), TOKEN.getLocalPart()});
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.