org.neuclear.commons.crypto.channels
Class VerifyingChannel
java.lang.Object
org.neuclear.commons.crypto.channels.AbstractCryptoChannel
org.neuclear.commons.crypto.channels.AbstractSignatureChannel
org.neuclear.commons.crypto.channels.VerifyingChannel
- All Implemented Interfaces:
- java.io.Closeable, java.nio.channels.Channel, java.nio.channels.WritableByteChannel
public class VerifyingChannel
- extends AbstractSignatureChannel
Channel that reads data and verifies it against a public key
|
Method Summary |
boolean |
verify(byte[] signature)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VerifyingChannel
public VerifyingChannel(java.security.Signature sig,
java.security.PublicKey key)
throws java.security.InvalidKeyException,
java.io.IOException
- Throws:
java.security.InvalidKeyException
java.io.IOException
VerifyingChannel
public VerifyingChannel(java.lang.String alg,
java.security.PublicKey key)
throws java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException,
java.io.IOException
- Throws:
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.io.IOException
VerifyingChannel
public VerifyingChannel(java.security.PublicKey key)
throws java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException,
java.io.IOException
- Throws:
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.io.IOException
verify
public boolean verify(byte[] signature)
throws java.security.SignatureException,
java.io.IOException
- Throws:
java.security.SignatureException
java.io.IOException
Copyright © 2003-2004 Antilles Software Ventures SA. All Rights Reserved.