Package org.apache.xml.utils

Examples of org.apache.xml.utils.URI


             */
            public void setType(String type) {
    if (type == null || type.length() == 0) {
        this.type = null;
    } else {
                    URI tmpType = null;
                    try {
                        tmpType = new URI(type);
                    } catch (URI.MalformedURIException mfue) {
                        throw (IllegalArgumentException)
                            new IllegalArgumentException().initCause(mfue);
                    }
                    this.type = tmpType.toString();
    }
            }
View Full Code Here


             */
            public void setEncoding(String encoding) {
    if (encoding == null || encoding.length() == 0) {
        this.encoding = null;
    } else {
                    URI tmpEncoding = null;
                    try {
                        tmpEncoding = new URI(encoding);
                    } catch (URI.MalformedURIException mfue) {
                        throw (IllegalArgumentException)
                            new IllegalArgumentException().initCause(mfue);
                    }
                    this.encoding = tmpEncoding.toString();
    }
            }
View Full Code Here

            /**
             * Constructor.
             * @param algorithm
             */
            public EncryptionMethodImpl(String algorithm) {
                URI tmpAlgorithm = null;
                try {
                    tmpAlgorithm = new URI(algorithm);
                } catch (URI.MalformedURIException mfue) {
                    throw (IllegalArgumentException)
                        new IllegalArgumentException().initCause(mfue);
                }
                this.algorithm = tmpAlgorithm.toString();
                encryptionMethodInformation = new LinkedList();
            }
View Full Code Here

         * because org.apache.xml.utils.URI considers this an
         * illegal URI because it has no scheme.
         */
        this.target = target;
    } else {
                    URI tmpTarget = null;
                    try {
                        tmpTarget = new URI(target);
                    } catch (URI.MalformedURIException mfue) {
                        throw (IllegalArgumentException)
                            new IllegalArgumentException().initCause(mfue);
                    }
                    this.target = tmpTarget.toString();
    }
            }
View Full Code Here

      CipherValue cv = cd.getCipherValue();
      // cv.setValue(base64EncodedEncryptedOctets.getBytes());
      cv.setValue(base64EncodedEncryptedOctets);

      if (type != null) {
          _ed.setType(new URI(type).toString());
      }
      EncryptionMethod method =
    _factory.newEncryptionMethod(new URI(_algorithm).toString());
      _ed.setEncryptionMethod(method);
  } catch (URI.MalformedURIException mfue) {
      throw new XMLEncryptionException("empty", mfue);
  }
        return (_ed);
View Full Code Here

    CipherValue cv = _ek.getCipherData().getCipherValue();
    cv.setValue(base64EncodedEncryptedOctets);

        try {
            EncryptionMethod method = _factory.newEncryptionMethod(
                new URI(_algorithm).toString());
            _ek.setEncryptionMethod(method);
        } catch (URI.MalformedURIException mfue) {
            throw new XMLEncryptionException("empty", mfue);
        }
    return _ek;
View Full Code Here

            /**
             * @param algorithm
             */
            public AgreementMethodImpl(String algorithm) {
                agreementMethodInformation = new LinkedList();
                URI tmpAlgorithm = null;
                try {
                    tmpAlgorithm = new URI(algorithm);
                } catch (URI.MalformedURIException fmue) {
                    throw (IllegalArgumentException)
                        new IllegalArgumentException().initCause(fmue);
                }
                algorithmURI = tmpAlgorithm.toString();
            }
View Full Code Here

                return (algorithmURI);
            }

            /** @param algorithm*/
            public void setAlgorithm(String algorithm) {
                URI tmpAlgorithm = null;
                try {
                    tmpAlgorithm = new URI(algorithm);
                } catch (URI.MalformedURIException mfue) {
                    throw (IllegalArgumentException)
                        new IllegalArgumentException().initCause(mfue);
                }
                algorithmURI = tmpAlgorithm.toString();
            }
View Full Code Here

      CipherValue cv = cd.getCipherValue();
      // cv.setValue(base64EncodedEncryptedOctets.getBytes());
      cv.setValue(base64EncodedEncryptedOctets);

      if (type != null) {
          _ed.setType(new URI(type).toString());
      }
      EncryptionMethod method =
    _factory.newEncryptionMethod(new URI(_algorithm).toString());
      _ed.setEncryptionMethod(method);
  } catch (URI.MalformedURIException mfue) {
      throw new XMLEncryptionException("empty", mfue);
  }
        return (_ed);
View Full Code Here

    CipherValue cv = _ek.getCipherData().getCipherValue();
    cv.setValue(base64EncodedEncryptedOctets);

        try {
            EncryptionMethod method = _factory.newEncryptionMethod(
                new URI(_algorithm).toString());
            _ek.setEncryptionMethod(method);
        } catch (URI.MalformedURIException mfue) {
            throw new XMLEncryptionException("empty", mfue);
        }
    return _ek;
View Full Code Here

TOP

Related Classes of org.apache.xml.utils.URI

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.