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

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


          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


              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

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.