Examples of signMessage()


Examples of com.drighetto.essai.bouncycastle.signature.CustomSigner.signMessage()

    try {
      /* Signer Sample */
      System.out.println("[Signer Sample]");
      customSigner = new CustomSigner();
      System.out.printf("Sign message : [%s]\n", new String(msg));
      signBytes = customSigner.signMessage(msg);
      System.out
          .println("Sign message OK, check now signature validty...");
      if (customSigner.isValid(msg, signBytes)) {
        System.out.println("OK - Message signature is valid !");
      } else {
View Full Code Here

Examples of net.suberic.pooka.PookaEncryptionManager.signMessage()

              }
      */
      PookaEncryptionManager cryptoManager = Pooka.getCryptoManager();

      if (getSignatureKey() != null) {
        mm = cryptoManager.signMessage(mm, null, sigKey);
      }

      if (cryptoKeys != null) {
        mm = cryptoManager.encryptMessage(mm,
                                          cryptoKeys);
View Full Code Here

Examples of org.apache.ws.security.message.WSSecKerberosToken.signMessage()

        if (sigParts.size() > 0) {
            if (sigToken instanceof KerberosToken) {
                krbToken.setParts(sigParts);
                try {
                    krbToken.signMessage();
                } catch (WSSecurityException e) {
                    throw new RampartException("errorInSignatureWithKerberosToken");
                }
                this.setInsertionLocation(RampartUtil.insertSiblingAfter(rmd,
                        this.getInsertionLocation(), krbToken.getSignatureElement()));
View Full Code Here

Examples of org.bitcoinj.crypto.DeterministicKey.signMessage()

    @Nullable
    public String signAsOwner(PledgingWallet wallet, String message, @Nullable KeyParameter aesKey) {
        DeterministicKey realKey = wallet.getAuthKeyFromIndexOrPubKey(authKey, authKeyIndex);
        if (realKey == null || (aesKey == null && realKey.isEncrypted()))
            return null;
        return realKey.signMessage(message, aesKey);
    }

    public void authenticateOwner(String message, String signatureBase64) throws SignatureException {
        ECKey.fromPublicOnly(authKey).verifyMessage(message, signatureBase64);
    }
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.