Package | Description |
---|---|
eu.gambas.sdk.api.j2se | |
eu.gambas.system.security | |
info.pppc.base.security | |
info.pppc.base.security.key |
Modifier and Type | Method and Description |
---|---|
AbstractCertificate |
CoreSetting.getCertificate()
Gets the certificate of the device.
|
static AbstractCertificate |
CoreCertificates.loadECC(java.lang.Class<?> context,
java.lang.String certificate)
Loads an ECC certificate from a resource.
|
static AbstractCertificate |
CoreCertificates.loadECC(java.lang.Class<?> context,
java.lang.String certificate,
java.lang.String key)
Loads an ECC certificate with a private key from a resource.
|
static AbstractCertificate |
CoreCertificates.loadRSA(java.lang.Class<?> context,
java.lang.String certificate)
Loads an RSA certificate from a resource.
|
static AbstractCertificate |
CoreCertificates.loadRSA(java.lang.Class<?> context,
java.lang.String certificate,
java.lang.String key)
Loads an RSA certificate with a private key from a resource.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<AbstractCertificate> |
CoreSetting.getCertificates()
Returns the certificates known to the device.
|
Modifier and Type | Method and Description |
---|---|
void |
CoreSetting.addCertificate(AbstractCertificate certificate)
Adds a certificate known to the device.
|
void |
CoreSetting.setCertificate(AbstractCertificate certificate)
Sets the certificate of the device.
|
Modifier and Type | Method and Description |
---|---|
AbstractCertificate |
GAMBASKeyStore.getCertificate(java.lang.String subject) |
AbstractCertificate |
GAMBASKeyStore.getCertificate(SystemID id) |
AbstractCertificate |
GAMBASKeyStore.getOwnCertificate() |
Modifier and Type | Method and Description |
---|---|
void |
GAMBASKeyStore.addCertificate(AbstractCertificate cert,
java.lang.String iri)
Adds a certificate from a remote call to the
User with the given IRI. |
static Pseudonym |
GAMBASKeyStore.getPseudonymForCertificate(AbstractCertificate cert)
Deprecated.
Use
CertificateUtils.getPseudonym(java.io.InputStream) instead. |
void |
GAMBASKeyStore.setOwnCertificate(AbstractCertificate ownCertificate)
Set the own certificate of this user, if it does exist.
|
Modifier and Type | Method and Description |
---|---|
static AbstractCertificate |
AbstractCertificate.createCertificate(byte[] certificate)
Creates a new certificate based on the given byte-array (which contains only the public key in DER format).
|
static AbstractCertificate |
AbstractCertificate.createCertificate(byte[] certificate,
byte[] key)
Creates a new certificate based on the given byte-array (which contains only the public key in DER format)
and the certificates key (also as byte-array in DER format).
|
Modifier and Type | Method and Description |
---|---|
static boolean |
AbstractCertificate.verifyCACertificateSignature(AbstractCertificate caCertificate)
Verifies a given CA root certificate.
|
static boolean |
AbstractCertificate.verifyCertificate(AbstractCertificate[] certificate,
IKeyStore keystore)
Verifies a given certificate and returns true if the certificate can be trusted, because it is either
Is stored in the given keystore
One of the given intermediate certificates is stored in the keystore
Its given root certificate is stored in the keystore.
|
Modifier and Type | Class and Description |
---|---|
class |
ECCCertificate
Implements an elliptic curve cryptography certificate.
|
class |
RSACertificate
Implements a standard x509 RSA certificate.
|