Package org.apache.ws.sandbox.security.trust

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


    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

    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

  /* (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

  /* (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

        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

  /* (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

              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

          if(el.equals(Created.TOKEN)) {
            this.createdElement = new Created(elem);
          } else if(el.equals(Expires.TOKEN)) {
            this.expiresElement = new Expires(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

    } else if(el.equals(AllowPostdating.TOKEN)) {
      this.allowPostdatingElement = new AllowPostdating(elem);
    } else if(el.equals(Lifetime.TOKEN)) {
      this.lifetimeElement = new Lifetime(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

TOP

Related Classes of org.apache.ws.sandbox.security.trust.WSTrustException

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.