public class DefaultNutsDigest extends Object implements net.thevpc.nuts.NutsDigest
| Constructor and Description |
|---|
DefaultNutsDigest(net.thevpc.nuts.NutsSession session) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.NutsDigest |
algorithm(String algorithm) |
protected void |
checkSession() |
byte[] |
computeBytes() |
String |
computeString() |
String |
getAlgorithm() |
net.thevpc.nuts.NutsSession |
getSession() |
int |
getSupportLevel(net.thevpc.nuts.spi.NutsSupportLevelContext context) |
protected String |
getValidAlgo() |
net.thevpc.nuts.NutsDigest |
md5() |
net.thevpc.nuts.NutsDigest |
setAlgorithm(String algorithm) |
net.thevpc.nuts.NutsDigest |
setSession(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsDigest |
setSource(byte[] source) |
net.thevpc.nuts.NutsDigest |
setSource(File source) |
net.thevpc.nuts.NutsDigest |
setSource(InputStream source) |
net.thevpc.nuts.NutsDigest |
setSource(net.thevpc.nuts.NutsDescriptor source) |
net.thevpc.nuts.NutsDigest |
setSource(net.thevpc.nuts.NutsPath source) |
net.thevpc.nuts.NutsDigest |
setSource(Path source) |
net.thevpc.nuts.NutsDigest |
sha1() |
net.thevpc.nuts.NutsDigest |
sha256() |
net.thevpc.nuts.NutsDigest |
writeHash(OutputStream out) |
public net.thevpc.nuts.NutsDigest setSource(InputStream source)
setSource in interface net.thevpc.nuts.NutsDigestpublic net.thevpc.nuts.NutsDigest setSource(File source)
setSource in interface net.thevpc.nuts.NutsDigestpublic net.thevpc.nuts.NutsDigest setSource(Path source)
setSource in interface net.thevpc.nuts.NutsDigestpublic net.thevpc.nuts.NutsDigest setSource(net.thevpc.nuts.NutsPath source)
setSource in interface net.thevpc.nuts.NutsDigestpublic net.thevpc.nuts.NutsDigest setSource(byte[] source)
setSource in interface net.thevpc.nuts.NutsDigestpublic net.thevpc.nuts.NutsDigest setSource(net.thevpc.nuts.NutsDescriptor source)
setSource in interface net.thevpc.nuts.NutsDigestpublic String computeString()
computeString in interface net.thevpc.nuts.NutsDigestpublic byte[] computeBytes()
computeBytes in interface net.thevpc.nuts.NutsDigestpublic net.thevpc.nuts.NutsDigest writeHash(OutputStream out)
writeHash in interface net.thevpc.nuts.NutsDigestpublic net.thevpc.nuts.NutsDigest md5()
md5 in interface net.thevpc.nuts.NutsDigestpublic net.thevpc.nuts.NutsSession getSession()
getSession in interface net.thevpc.nuts.NutsDigestpublic net.thevpc.nuts.NutsDigest setSession(net.thevpc.nuts.NutsSession session)
setSession in interface net.thevpc.nuts.NutsDigestpublic net.thevpc.nuts.NutsDigest sha1()
sha1 in interface net.thevpc.nuts.NutsDigestpublic net.thevpc.nuts.NutsDigest sha256()
sha256 in interface net.thevpc.nuts.NutsDigestpublic net.thevpc.nuts.NutsDigest algorithm(String algorithm)
algorithm in interface net.thevpc.nuts.NutsDigestpublic String getAlgorithm()
getAlgorithm in interface net.thevpc.nuts.NutsDigestpublic net.thevpc.nuts.NutsDigest setAlgorithm(String algorithm)
setAlgorithm in interface net.thevpc.nuts.NutsDigestprotected String getValidAlgo()
protected void checkSession()
public int getSupportLevel(net.thevpc.nuts.spi.NutsSupportLevelContext context)
getSupportLevel in interface net.thevpc.nuts.spi.NutsComponentCopyright © 2022 vpc open source initiative. All rights reserved.