public class X509Support
X509 Support
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RSA |
static java.lang.String |
SHA_256_WITH_RSA |
static java.lang.String |
X_509_CERTIFICATE_TYPE |
| Constructor and Description |
|---|
X509Support()
Creates a new X509 support without any signing capabilities
|
X509Support()
Creates a new X509 support
|
X509Support()
Creates a new x509 support
|
X509Support()
Creates a new x509 support
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
cipher()
cipher
|
byte[] |
decipher()
decipher
|
java.security.cert.X509Certificate |
getCertificate()
Returns the certificate
|
java.security.interfaces.RSAPrivateKey |
getPrivateKey()
Returns the private key (if there is one)
|
boolean |
isPrivateKeyAvailable()
Returns whether the private key is available
|
static java.security.cert.X509Certificate |
readCertificate()
Reads the x509 certificate from the given url
|
static java.security.interfaces.RSAPrivateKey |
readPrivateKey()
Reads a private key form a url
|
Signature |
sign()
sign
|
boolean |
verifySignature()
verifySignature
|
public static java.lang.String RSA
public static java.lang.String SHA_256_WITH_RSA
public static java.lang.String X_509_CERTIFICATE_TYPE
public X509Support()
Creates a new X509 support without any signing capabilities
public X509Support()
Creates a new X509 support
public X509Support()
Creates a new x509 support
public X509Support()
Creates a new x509 support
public boolean isPrivateKeyAvailable()
Returns whether the private key is available
public byte[] cipher()
cipher
public byte[] decipher()
decipher
public Signature sign()
sign
public boolean verifySignature()
verifySignature
public java.security.cert.X509Certificate getCertificate()
Returns the certificate
public java.security.interfaces.RSAPrivateKey getPrivateKey()
Returns the private key (if there is one)
public static java.security.interfaces.RSAPrivateKey readPrivateKey()
Reads a private key form a url
public static java.security.cert.X509Certificate readCertificate()
Reads the x509 certificate from the given url