![JAR search and dependency download from the Maven repository](/logo.png)
org.spongycastle.tls.crypto.impl.bc.BcTlsVerifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bctls-jdk15on Show documentation
Show all versions of bctls-jdk15on Show documentation
Spongy Castle is a package-rename (org.bouncycastle.* to org.spongycastle.*) of Bouncy Castle
intended for the Android platform. Android unfortunately ships with a stripped-down version of
Bouncy Castle, which prevents easy upgrades - Spongy Castle overcomes this and provides a full,
up-to-date version of the Bouncy Castle cryptographic libs.
The newest version!
package org.spongycastle.tls.crypto.impl.bc;
import org.spongycastle.crypto.params.AsymmetricKeyParameter;
import org.spongycastle.tls.DigitallySigned;
import org.spongycastle.tls.crypto.TlsStreamVerifier;
import org.spongycastle.tls.crypto.TlsVerifier;
public abstract class BcTlsVerifier
implements TlsVerifier
{
protected final BcTlsCrypto crypto;
protected final AsymmetricKeyParameter publicKey;
protected BcTlsVerifier(BcTlsCrypto crypto, AsymmetricKeyParameter publicKey)
{
if (crypto == null)
{
throw new NullPointerException("'crypto' cannot be null");
}
if (publicKey == null)
{
throw new NullPointerException("'publicKey' cannot be null");
}
if (publicKey.isPrivate())
{
throw new IllegalArgumentException("'publicKey' must be public");
}
this.crypto = crypto;
this.publicKey = publicKey;
}
public TlsStreamVerifier getStreamVerifier(DigitallySigned signature)
{
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy