Package aQute.libg.cryptography
Class Signer<D extends Digest>
- java.lang.Object
-
- java.io.OutputStream
-
- aQute.libg.cryptography.Signer<D>
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class Signer<D extends Digest> extends java.io.OutputStream
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description D
digest()
java.security.Signature
signature()
void
write(byte[] buffer, int offset, int length)
void
write(int b)
-
-
-
Method Detail
-
write
public void write(byte[] buffer, int offset, int length) throws java.io.IOException
- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOException
- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
signature
public java.security.Signature signature() throws java.lang.Exception
- Throws:
java.lang.Exception
-
digest
public D digest() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-