Examples of wrap()


Examples of org.apache.shindig.common.crypto.BlobCrypter.wrap()

      throw new SecurityTokenException("Unknown container " + aToken.getContainer());
    }

    try {
      aToken.setExpires();
      return aToken.getContainer() + ':' + crypter.wrap(aToken.toMap());
    } catch (BlobCrypterException e) {
      throw new SecurityTokenException(e);
    }
  }
View Full Code Here

Examples of org.apache.tomcat.lite.io.CBuffer.wrap()

                if (pos >= 0) {
                    int lastSlash = -1;
                    int length = -1;
                    boolean found = false;
                    CBuffer tmp = mappingData.tmpPrefix;
                    tmp.wrap(uri, 0, uri.length());

                    while (pos >= 0) {
                        if (tmp.startsWith(contexts[pos].name)) {
                            length = contexts[pos].name.length();
                            if (tmp.length() == length) {
View Full Code Here

Examples of org.apache.xml.security.algorithms.encryption.EncryptionMethod.wrap()

      if (keyInfo != null) {
         this._constructionElement.appendChild(keyInfo.getElement());
         XMLUtils.addReturnToElement(this._constructionElement);
      }
      {
         byte wrappedKey[] = encryptionMethod.wrap(contentKey, wrapKey);
         CipherData cipherData = new CipherData(doc, wrappedKey);
         this._constructionElement.appendChild(cipherData.getElement());
         XMLUtils.addReturnToElement(this._constructionElement);
      }
View Full Code Here

Examples of org.apache.xml.security.algorithms.encryption.helper.AESWrapper.wrap()

         if (IV != null && IV.length != 8) {
            throw new XMLSecurityException("empty");
         }
         AESWrapper aw = new AESWrapper(this._cipher);

         return aw.wrap(contentKey, wrapKey, IV);
   }

   /**
    * Method engineUnwrap
    *
 
View Full Code Here

Examples of org.auraframework.def.TypeDef.wrap()

            }
            if (stem != null) {
                if (def != null) {
                    ValueProvider vp;
                    TypeDef typeDef = def.getType(part);
                    vp = (ret instanceof ValueProvider) ? (ValueProvider) ret : (ValueProvider) typeDef.wrap(ret);
                    ret = vp.getValue(stem);
                } else {
                    getValue(ret, stem, def);
                }
            }
View Full Code Here

Examples of org.bouncycastle.crypto.Wrapper.wrap()

        wrapper.init(true, new ParametersWithIV(new KeyParameter(kek), iv));

        try
        {
            byte[]  cText = wrapper.wrap(in, 0, in.length);
            if (!Arrays.areEqual(cText, out))
            {
                return new SimpleTestResult(false, getName() + ": failed wrap test " + id  + " expected " + new String(Hex.encode(out)) + " got " + new String(Hex.encode(cText)));
            }
        }
View Full Code Here

Examples of org.bouncycastle.crypto.engines.AESWrapEngine.wrap()

        wrapper.init(true, new KeyParameter(kek));

        try
        {
            byte[]  cText = wrapper.wrap(in, 0, in.length);
            if (!Arrays.areEqual(cText, out))
            {
                return new SimpleTestResult(false, getName() + ": failed wrap test " + id  + " expected " + new String(Hex.encode(out)) + " got " + new String(Hex.encode(cText)));
            }
        }
View Full Code Here

Examples of org.bouncycastle.crypto.engines.DESedeWrapEngine.wrap()

        wrapper.init(true, new ParametersWithIV(new KeyParameter(kek), iv));

        try
        {
            byte[]  cText = wrapper.wrap(in, 0, in.length);
            if (!Arrays.areEqual(cText, out))
            {
                return new SimpleTestResult(false, getName() + ": failed wrap test " + id  + " expected " + new String(Hex.encode(out)) + " got " + new String(Hex.encode(cText)));
            }
        }
View Full Code Here

Examples of org.brixcms.jcr.api.JcrSession.Behavior.wrap()

        if (delegate == null) {
            return null;
        } else {
            Behavior behavior = session.getBehavior();
            if (behavior != null) {
                JcrNode node = behavior.wrap(delegate, session);
                if (node != null) {
                    return node;
                }
            }
            return new NodeWrapper(delegate, session);
View Full Code Here

Examples of org.eclipse.jetty.websocket.common.events.EventDriverFactory.wrap()

        // Event Driver factory
        EventDriverFactory factory = new EventDriverFactory(policy);

        // local socket
        EventDriver driver = factory.wrap(new TrackingSocket("local"));

        // remote socket
        socket = new TrackingSocket("remote");
        OutgoingFrames socketPipe = FramePipes.to(factory.wrap(socket));
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.