B C D E G H I K L M N O P R S T U V X 
All Classes All Packages

B

BC_PROVIDER_NAME - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
buildAndSignCert(BigInteger, PrivateKey, PublicKey, PublicKey, X500Name, X500Name, Map<String, String>, String, String, String, AuthProvider, int) - Method in class net.maritimeconnectivity.pki.CertificateBuilder
Builds and signs a certificate.

C

CAHandler - Class in net.maritimeconnectivity.pki
Class that holds functions for generating root and intermediate CAs
CAHandler(CertificateBuilder, PKIConfiguration) - Constructor for class net.maritimeconnectivity.pki.CAHandler
 
CERT_FOOTER - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
CERT_HEADER - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
CertificateBuilder - Class in net.maritimeconnectivity.pki
Class that contains functions for generating client certificates
CertificateBuilder(KeystoreHandler) - Constructor for class net.maritimeconnectivity.pki.CertificateBuilder
 
CertificateHandler - Class in net.maritimeconnectivity.pki
Class that holds functions for handling certificates.
CertStatus - Enum in net.maritimeconnectivity.pki.ocsp
 
checkOCSP() - Method in class net.maritimeconnectivity.pki.ocsp.OCSPClient
 
createOutputKeystore(String, String, String, PrivateKey, X509Certificate) - Static method in class net.maritimeconnectivity.pki.CertificateHandler
Place a cert/key in a PKCS12 or JKS keystore
createSubCa(String, String, int) - Method in class net.maritimeconnectivity.pki.CAHandler
Creates a sub Certificate Authority for the MC PKI.
createSubCAPKCS11(String, String, PKIConfiguration, int) - Method in class net.maritimeconnectivity.pki.CAHandler
Creates a sub Certificate Authority for the MC PKI using an HSM.
CRLVerifier - Class in net.maritimeconnectivity.pki
Class that contains functions for retrieving and verifying certificate revocation lists

D

downloadCRL(String) - Static method in class net.maritimeconnectivity.pki.CRLVerifier
Downloads CRL from given URL.
downloadCRLFromLDAP(String) - Static method in class net.maritimeconnectivity.pki.CRLVerifier
Downloads a CRL from given LDAP url, e.g.
downloadCRLFromWeb(String) - Static method in class net.maritimeconnectivity.pki.CRLVerifier
Downloads a CRL from given HTTP/HTTPS/FTP URL, e.g.

E

ELLIPTIC_CURVE - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
escapeSpecialCharacters(String) - Static method in class net.maritimeconnectivity.pki.CertificateBuilder
Escapes characters that are reserved for DN attributes according to RFC 4514 and Distinguished Names (Microsoft).

G

generateCertForEntity(BigInteger, String, String, String, String, String, String, int, PublicKey, Map<String, String>, String, String, AuthProvider) - Method in class net.maritimeconnectivity.pki.CertificateBuilder
Generates a signed certificate for an entity.
generateCRL(List<RevocationInfo>, KeyStore.PrivateKeyEntry, PKIConfiguration) - Static method in class net.maritimeconnectivity.pki.Revocation
Creates a Certificate RevocationInfo List (CRL) for the certificate serialnumbers given.
generateKeyPair(PKIConfiguration) - Static method in class net.maritimeconnectivity.pki.CertificateBuilder
Generates a keypair (public and private) based on Elliptic curves.
generateKeyPairPKCS11(P11PKIConfiguration) - Static method in class net.maritimeconnectivity.pki.CertificateBuilder
Generates a keypair (public and private) based on Elliptic curves on an HSM using PKCS#11
generateOCSPResponse(BasicOCSPRespBuilder, KeyStore.PrivateKeyEntry, P11PKIConfiguration) - Static method in class net.maritimeconnectivity.pki.Revocation
Generates a OCSPResp.
generateRootCACRL(String, List<RevocationInfo>, KeyStore.PrivateKeyEntry, String, AuthProvider) - Static method in class net.maritimeconnectivity.pki.Revocation
Creates a Certificate RevocationInfo List (CRL) for the certificate serialnumbers given.
generateRootCRL(String, String, String) - Method in class net.maritimeconnectivity.pki.CAHandler
Generates a CRL for the root CA.
generateRootCRLP11(String, String, String) - Method in class net.maritimeconnectivity.pki.CAHandler
Generates a root CA CRL using a private key stored in an HSM.
generateSerialNumber(PKIConfiguration) - Method in class net.maritimeconnectivity.pki.CertificateBuilder
Generate a unique serial number to uniquely identify certificates.
getAisShipType() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getCallSign() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getCertFromNginxHeader(String) - Static method in class net.maritimeconnectivity.pki.CertificateHandler
Extract a certificate from a nginx header containing a PEM formatted certificate
getCertFromPem(String) - Static method in class net.maritimeconnectivity.pki.CertificateHandler
Converts a PEM encoded certificate to a X509Certificate
getCertificateStatus() - Method in class net.maritimeconnectivity.pki.ocsp.OCSPClient
 
getCn() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getCountry() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getCrlDistributionPoints(X509Certificate) - Static method in class net.maritimeconnectivity.pki.CRLVerifier
Extracts all CRL distribution point URLs from the "CRL Distribution Point" extension in a X.509 certificate.
getCRLReasonFromString(String) - Static method in class net.maritimeconnectivity.pki.Revocation
Returns the int value associated with a revocation status
getDn() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getElement(RDN[], ASN1ObjectIdentifier) - Static method in class net.maritimeconnectivity.pki.CertificateHandler
Extract a value from the DN extracted from a certificate
getElement(X500Name, ASN1ObjectIdentifier) - Static method in class net.maritimeconnectivity.pki.CertificateHandler
Extract a value from the DN extracted from a certificate
getEmail() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getFirstName() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getFlagState() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getHomeMmsUrl() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getIdentityFromCert(X509Certificate) - Static method in class net.maritimeconnectivity.pki.CertificateHandler
Extracts a PKIIdentity from a certificate using the MCP PKI certificate "format"
getImoNumber() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getLastName() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getMCPCertificate(String) - Method in class net.maritimeconnectivity.pki.KeystoreHandler
Returns an MCP certificate from the truststore
getMmsiNumber() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getMrn() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getMrnSubsidiary() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getO() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getOcspUrlFromCertificate(X509Certificate) - Static method in class net.maritimeconnectivity.pki.ocsp.OCSPClient
 
getOu() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getPemFromEncoded(String, byte[]) - Static method in class net.maritimeconnectivity.pki.CertificateHandler
Convert a cert/key to PEM from "encoded" format (byte[])
getPermissions() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getPkcs11Pin() - Method in class net.maritimeconnectivity.pki.pkcs11.P11PKIConfiguration
 
getPkcs11ProviderName() - Method in class net.maritimeconnectivity.pki.pkcs11.P11PKIConfiguration
 
getPortOfRegister() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getProvider() - Method in class net.maritimeconnectivity.pki.pkcs11.P11PKIConfiguration
 
getPubKey(String) - Method in class net.maritimeconnectivity.pki.KeystoreHandler
Returns the public key of the sub CA certificate with the given alias
getRevokedAt() - Method in class net.maritimeconnectivity.pki.RevocationInfo
 
getRevokedStatus() - Method in class net.maritimeconnectivity.pki.ocsp.OCSPClient
 
getRevokeReason() - Method in class net.maritimeconnectivity.pki.RevocationInfo
 
getRootCAAlias() - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
getRootCaKeyPassword() - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
getRootCaKeystorePassword() - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
getRootCaKeystorePath() - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
getSerialNumber() - Method in class net.maritimeconnectivity.pki.RevocationInfo
 
getShipMrn() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getSigningCertEntry(String) - Method in class net.maritimeconnectivity.pki.KeystoreHandler
Loads the MCP certificate used for signing from the (jks) keystore Note that if this KeyStoreHandler has been instantiated with an P11PKIConfiguration object you will need to call the function P11PKIConfiguration.providerLogin() before calling this function.
getSn() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
getStatus() - Method in class net.maritimeconnectivity.pki.RevocationInfo
 
getSubCaKeyPassword() - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
getSubCaKeystorePassword() - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
getSubCaKeystorePath() - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
getTrustStore() - Method in class net.maritimeconnectivity.pki.KeystoreHandler
Returns the truststore defined in PKIConfiguration.
getTruststorePassword() - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
getTruststorePath() - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
getUrl() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
GOOD - net.maritimeconnectivity.pki.ocsp.CertStatus
 

H

handle(Callback[]) - Method in class net.maritimeconnectivity.pki.pkcs11.PasswordHandler
 
handleOCSP(OCSPReq, PublicKey, KeyStore.PrivateKeyEntry, Map<CertificateID, CertificateStatus>, PKIConfiguration) - Static method in class net.maritimeconnectivity.pki.Revocation
 

I

initOCSPRespBuilder(OCSPReq, PublicKey) - Static method in class net.maritimeconnectivity.pki.Revocation
Generate a BasicOCSPRespBuilder.
initRootCA(String, String, String, int) - Method in class net.maritimeconnectivity.pki.CAHandler
Generates a self-signed certificate and saves it in the keystore and truststore.
initRootCAPKCS11(String, String, String, int) - Method in class net.maritimeconnectivity.pki.CAHandler
Generates a self-signed certificate and saves it and the private key in a HSM using PKCS#11 and the certificate only in a truststore.

K

KEYSTORE_TYPE - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
KeystoreHandler - Class in net.maritimeconnectivity.pki
Class that contains functions for handling keystores
KeystoreHandler(PKIConfiguration) - Constructor for class net.maritimeconnectivity.pki.KeystoreHandler
 

L

loadCRLFromFile(String) - Static method in class net.maritimeconnectivity.pki.CRLVerifier
Load a CRL from given file
loadRevocationFile(String) - Method in class net.maritimeconnectivity.pki.CAHandler
Loads a CSV file with information about revoked certificates into a RevocationInfo list.

M

MC_OID_AIS_SHIPTYPE - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
MC_OID_CALLSIGN - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
MC_OID_FLAGSTATE - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
MC_OID_HOME_MMS_URL - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
MC_OID_IMO_NUMBER - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
MC_OID_MMSI_NUMBER - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
MC_OID_MRN - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
MC_OID_MRN_SUBSIDIARY - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
MC_OID_PERMISSIONS - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
MC_OID_PORT_OF_REGISTER - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
MC_OID_SHIP_MRN - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
MC_OID_URL - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 

N

net.maritimeconnectivity.pki - package net.maritimeconnectivity.pki
 
net.maritimeconnectivity.pki.exception - package net.maritimeconnectivity.pki.exception
 
net.maritimeconnectivity.pki.ocsp - package net.maritimeconnectivity.pki.ocsp
 
net.maritimeconnectivity.pki.pkcs11 - package net.maritimeconnectivity.pki.pkcs11
 

O

OCSPClient - Class in net.maritimeconnectivity.pki.ocsp
 
OCSPClient(X509Certificate, X509Certificate) - Constructor for class net.maritimeconnectivity.pki.ocsp.OCSPClient
 
OCSPValidationException - Exception in net.maritimeconnectivity.pki.ocsp
 
OCSPValidationException(String) - Constructor for exception net.maritimeconnectivity.pki.ocsp.OCSPValidationException
 
OCSPValidationException(String, Throwable) - Constructor for exception net.maritimeconnectivity.pki.ocsp.OCSPValidationException
 
OCSPVerifier - Class in net.maritimeconnectivity.pki
 

P

P11PKIConfiguration - Class in net.maritimeconnectivity.pki.pkcs11
Class for holding the configuration for PKCS#11 of an instance of the PKI
P11PKIConfiguration(String, String, char[]) - Constructor for class net.maritimeconnectivity.pki.pkcs11.P11PKIConfiguration
 
P11PKIConfiguration(String, String, String) - Constructor for class net.maritimeconnectivity.pki.pkcs11.P11PKIConfiguration
 
PasswordHandler - Class in net.maritimeconnectivity.pki.pkcs11
Class used to be able to login to an HSM using a password/PIN
PasswordHandler(char[]) - Constructor for class net.maritimeconnectivity.pki.pkcs11.PasswordHandler
 
PKCS11 - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
PKIConfiguration - Class in net.maritimeconnectivity.pki
Class holding the configuration of an instance of the PKI
PKIConfiguration(String) - Constructor for class net.maritimeconnectivity.pki.PKIConfiguration
 
PKIConstants - Class in net.maritimeconnectivity.pki
Class that contains string constants that are used throughout the project
PKIIdentity - Class in net.maritimeconnectivity.pki
A wrapper class that can contain the attributes of an MCP identity
PKIIdentity() - Constructor for class net.maritimeconnectivity.pki.PKIIdentity
 
PKIRuntimeException - Exception in net.maritimeconnectivity.pki.exception
A custom RuntimeException
PKIRuntimeException(String) - Constructor for exception net.maritimeconnectivity.pki.exception.PKIRuntimeException
 
PKIRuntimeException(String, Throwable) - Constructor for exception net.maritimeconnectivity.pki.exception.PKIRuntimeException
 
PKIRuntimeException(Throwable) - Constructor for exception net.maritimeconnectivity.pki.exception.PKIRuntimeException
 
providerLogin() - Method in class net.maritimeconnectivity.pki.pkcs11.P11PKIConfiguration
Login to the HSM
providerLogout() - Method in class net.maritimeconnectivity.pki.pkcs11.P11PKIConfiguration
Logout from the HSM

R

Revocation - Class in net.maritimeconnectivity.pki
Class that contains functions that are relevant for providing revocation information
RevocationInfo - Class in net.maritimeconnectivity.pki
Wrapper class used to contain revocation information about a certificate
RevocationInfo() - Constructor for class net.maritimeconnectivity.pki.RevocationInfo
 
RevocationInfo(BigInteger, CRLReason, Date, CertStatus) - Constructor for class net.maritimeconnectivity.pki.RevocationInfo
 
REVOKED - net.maritimeconnectivity.pki.ocsp.CertStatus
 

S

setAisShipType(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setCallSign(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setCn(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setCountry(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setDn(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setEmail(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setFirstName(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setFlagState(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setHomeMmsUrl(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setImoNumber(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setLastName(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setMmsiNumber(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setMrn(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setMrnSubsidiary(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setO(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setOu(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setPermissions(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setPortOfRegister(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setRevokedAt(Date) - Method in class net.maritimeconnectivity.pki.RevocationInfo
 
setRevokeReason(CRLReason) - Method in class net.maritimeconnectivity.pki.RevocationInfo
 
setRootCAAlias(String) - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
setRootCaKeyPassword(String) - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
setRootCaKeystorePassword(String) - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
setRootCaKeystorePath(String) - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
setSerialNumber(BigInteger) - Method in class net.maritimeconnectivity.pki.RevocationInfo
 
setShipMrn(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setSn(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
setStatus(CertStatus) - Method in class net.maritimeconnectivity.pki.RevocationInfo
 
setSubCaKeyPassword(String) - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
setSubCaKeystorePassword(String) - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
setSubCaKeystorePath(String) - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
setTruststorePassword(String) - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
setTruststorePath(String) - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
setUrl(String) - Method in class net.maritimeconnectivity.pki.PKIIdentity
 
SIGNER_ALGORITHM - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 

T

toString() - Method in class net.maritimeconnectivity.pki.PKIConfiguration
 
toString() - Method in class net.maritimeconnectivity.pki.PKIIdentity
 

U

UNKNOWN - net.maritimeconnectivity.pki.ocsp.CertStatus
 

V

valueOf(String) - Static method in enum net.maritimeconnectivity.pki.ocsp.CertStatus
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.maritimeconnectivity.pki.ocsp.CertStatus
Returns an array containing the constants of this enum type, in the order they are declared.
verifyCertificate(PublicKey, X509Certificate, Date) - Static method in class net.maritimeconnectivity.pki.CertificateHandler
Verify a single certificate against the public key of the issueing certificate.
verifyCertificateChain(X509Certificate, KeyStore) - Static method in class net.maritimeconnectivity.pki.CertificateHandler
Verify a single certificate against trust chain in the keystore.
verifyCertificateCRL(X509Certificate) - Static method in class net.maritimeconnectivity.pki.CRLVerifier
Extracts the CRL distribution points from the certificate (if available) and checks the certificate revocation status against the CRLs coming from the distribution points.
verifyCertificateCRL(X509Certificate, X509CRL) - Static method in class net.maritimeconnectivity.pki.CRLVerifier
Verifies the revocation status of a certificate against a CRL
verifyCertificateOCSP(X509Certificate, X509Certificate) - Static method in class net.maritimeconnectivity.pki.OCSPVerifier
Verifies a certificate against an issuer using OCSP.
verifyCertificateOCSP(X509Certificate, KeyStore) - Static method in class net.maritimeconnectivity.pki.OCSPVerifier
Verifies a certificate against its issuer using OCSP.

X

X509 - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
X509_SAN_DNSNAME - Static variable in class net.maritimeconnectivity.pki.PKIConstants
 
B C D E G H I K L M N O P R S T U V X 
All Classes All Packages