A B C D E F G H I K L M N O P R S T U V X

A

accept(File) - Method in class nl.nikhef.slcshttps.gui.FileNameExtFilter
Tests the specified file, returning true if the file is accepted, false otherwise.
actButton - Variable in class nl.nikhef.slcshttps.gui.SerialPanel
Activate the certificate for client side authentication.
actionPerformed(ActionEvent) - Method in class nl.nikhef.slcshttps.gui.SerialPanel
Called when one of the buttons is pressed.
actionPerformed(ActionEvent) - Method in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
Called when SURFCAInitDialog receives an ActionEvent.
addAlias(String) - Method in class nl.nikhef.slcshttps.trust.TrustCert
Adds the given alias to the list of aliases for this TrustCert.
addCert(String, TrustCert) - Method in class nl.nikhef.slcshttps.trust.TrustManagerImpl
Adds an alias/certificate to the list of known certificates.
addCryptoStore(CryptoStore) - Method in class nl.nikhef.slcshttps.crypto.CryptoSSL
Adds an extra KeyManager for the given CryptoStore parameter.
addRequestProperty(String, String) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
almostexpired(String) - Method in class nl.nikhef.slcshttps.gui.HttxClientPopupComm
Method to inform the user that his client certificate is about to expire using a popup window.
almostexpired(String) - Method in interface nl.nikhef.slcshttps.trust.HttxURLConnection.HttxClientCommunicator
Method to inform the user that his client certificate is about to expire.
almostexpired(String) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection.StdioComm
Method to inform the user that his client certificate is about to expire using stdio/stderr, any HTML italics tags are removed.
ALTNAME_DNS - Static variable in class nl.nikhef.slcshttps.trust.HostnameChecker
constant for subject alt names of type DNS.
ALTNAME_IP - Static variable in class nl.nikhef.slcshttps.trust.HostnameChecker
constant for subject alt names of type IP.
AUTH_URL - Static variable in class nl.nikhef.slcshttps.SURFCAHttps
URL to send the CSR hash to, its value is set using the property SURFCAHttps.AUTH_URL_PROPERTY.
AUTH_URL_PROPERTY - Static variable in class nl.nikhef.slcshttps.SURFCAHttps
Name of property defining where to send the CSR hash to via webbrowser: "nl.nikhef.slcshttps.AUTH_URL"; use for example "https://knikker.surfnet.nl/onlineca/x509.php?hash=" or just "?hash=" as its value.

B

BareBonesBrowserLaunch - Class in nl.nikhef.slcshttps.util
Static class to provide a way to launch a proper default webbrowser from Java.
BareBonesBrowserLaunch() - Constructor for class nl.nikhef.slcshttps.util.BareBonesBrowserLaunch
 
browsers - Static variable in class nl.nikhef.slcshttps.util.BareBonesBrowserLaunch
Browsers to try for Unix/Linux.
button1 - Variable in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
Button used in a 1-button panel, changed using SURFCAInitDialog.actionPerformed(ActionEvent).
button2a - Variable in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
First button used in a 2-button panel, changed using SURFCAInitDialog.actionPerformed(ActionEvent).
button2b - Variable in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
Second button used in a 2-button panel, changed using SURFCAInitDialog.actionPerformed(ActionEvent).
buttonPanel - Variable in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
Button panel (CardLayout), changed using SURFCAInitDialog.actionPerformed(ActionEvent).
bytetoString(byte[]) - Method in class nl.nikhef.slcshttps.crypto.CSR
returns a String representation of the given byte[] array.

C

ca - Variable in class nl.nikhef.slcshttps.gui.SerialPanel
The information for this SerialPanel is taken from here.
CAConnection - Class in nl.nikhef.slcshttps
This class provides methods to post data to a (CA) website and retrieve and store the response.
CAConnection() - Constructor for class nl.nikhef.slcshttps.CAConnection
Default constructor to force handling of calling without arguments.
CAConnection(String) - Constructor for class nl.nikhef.slcshttps.CAConnection
Constructs a CAConnection to the url specified by String CA_URL.
CAHttps - Class in nl.nikhef.slcshttps
Abstract class for communication to a Certificate Authority (CA), an implementation should include methods to initialize (e.g authenticate at an Online CA) and to retrieve and store a certificate.
CAHttps() - Constructor for class nl.nikhef.slcshttps.CAHttps
Constructs a default CAHttps, this is the same as CAHttps.CAHttps(boolean) with the value true.
CAHttps(boolean) - Constructor for class nl.nikhef.slcshttps.CAHttps
Constructs a default CAHttps with or without creating a Certificate Signing Request (CSR) in the internal CryptoStore.
CAHttps(PrintStream, PrintStream, InputStream) - Constructor for class nl.nikhef.slcshttps.CAHttps
constructs a default CAHttps and changes stdout/stdin to the streams specified.
CAHttps(PrintStream, PrintStream, InputStream, boolean) - Constructor for class nl.nikhef.slcshttps.CAHttps
constructs a default CAHttps, changes stdout/stdin to the streams specified, with or without creating a Certificate Signing Request (CSR) in the internal CryptoStore.
CAHttpsCertNo - Static variable in class nl.nikhef.slcshttps.CAHttps
The serial number for the currently used client side certificate in HttpsURLConnection, can be retrieved using CAHttps.getCAHttpsCertNo().
CAHttxCertNo - Static variable in class nl.nikhef.slcshttps.CAHttps
The serial number for the currently used client side certificate in HttxURLConnection, can be retrieved using CAHttps.getCAHttxCertNo().
CAPanel - Class in nl.nikhef.slcshttps.gui
Class to create a panel showing certificate information (CertPanel) and a panel with buttons to set or reset the default SSLSocketFactory for HttpsURLConnection and/or HttxURLConnection (SerialPanel).
CAPanel(CAHttps) - Constructor for class nl.nikhef.slcshttps.gui.CAPanel
Constructs a CAPanel with a CertPanel and one or more SerialPanel for HttpsURLConnection and/or HttxURLConnection.
cardPanel - Variable in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
Text panel (CardLayout), changed using SURFCAInitDialog.actionPerformed(ActionEvent).
CATool - Class in nl.nikhef.slcshttps.gui
Static class to show a CAPanel in a popup window; this contains information about the CAHttps.
CATool() - Constructor for class nl.nikhef.slcshttps.gui.CATool
 
CERT_ALIAS - Static variable in class nl.nikhef.slcshttps.crypto.CryptoStore
default alias for entry in CryptoStore.keyStore containing the privatekey and certificate.
CERT_URL - Static variable in class nl.nikhef.slcshttps.SURFCAHttps
URL to send the CSR itself to, its value is be set using the property SURFCAHttps.CERT_URL_PROPERTY.
CERT_URL_PROPERTY - Static variable in class nl.nikhef.slcshttps.SURFCAHttps
Name of property defining where to get the certificate from: "nl.nikhef.slcshttps.CERT_URL"; use for example "https://knikker.surfnet.nl/onlineca/x509.php" as its value.
CertChainChecker - Class in nl.nikhef.slcshttps.trust
Static class to validate a X509Certificate chain.
CertChainChecker() - Constructor for class nl.nikhef.slcshttps.trust.CertChainChecker
 
certFactory - Static variable in class nl.nikhef.slcshttps.trust.CertChainChecker
certFactory is needed to make a CertPath object from a X509Certificate[].
CertPanel - Class in nl.nikhef.slcshttps.gui
Class to create a panel showing information about the certificate of a CAHttps.
CertPanel(CAHttps) - Constructor for class nl.nikhef.slcshttps.gui.CertPanel
Constructs a CertPanel, containing a table with information about the certificate in given caHttps.
certValidator - Static variable in class nl.nikhef.slcshttps.trust.CertChainChecker
certValidator is doing the actual validation, initialized at startup using CertChainChecker.initCertValidator().
chainError - Variable in class nl.nikhef.slcshttps.trust.TrustCert
String describing the error causing the chain validation to fail.
chainErrorIdx - Variable in class nl.nikhef.slcshttps.trust.TrustCert
Index of certificate causing the chain validation to fail.
chainFirstDate - Variable in class nl.nikhef.slcshttps.trust.TrustCert
Date represention of the latest notBefore.
chainFirstIdx - Variable in class nl.nikhef.slcshttps.trust.TrustCert
Index of the certificate with the latest notBefore or -1 for unset.
chainFirstMSec - Variable in class nl.nikhef.slcshttps.trust.TrustCert
msec represention of the latest notBefore.
chainLastDate - Variable in class nl.nikhef.slcshttps.trust.TrustCert
Date represention of the earliest notAfter.
chainLastIdx - Variable in class nl.nikhef.slcshttps.trust.TrustCert
Index of the certificate with the earliest notAfter or -1 for unset.
chainLastMSec - Variable in class nl.nikhef.slcshttps.trust.TrustCert
msec represention of the earliest notAfter.
checkChain() - Method in class nl.nikhef.slcshttps.trust.TrustCert
Method to check whether the certificate chain is valid, that is in particular if the whole chain can be followed back to a trusted root certificate.
checkClientExpire() - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Static method checking the client certificate, using status flags to determine whether to warn the user the certificate expiry is imminent, is already expired etc.
checkClientTrusted(X509Certificate[], String) - Method in class nl.nikhef.slcshttps.trust.TrustManagerImpl
Dummy Client Certificate chain checker, which never fails.
checkHostname(String) - Method in class nl.nikhef.slcshttps.trust.TrustCert
Method to check whether the server certificate is valid for given hostName.
checkServerTrusted(X509Certificate[], String) - Method in class nl.nikhef.slcshttps.trust.TrustManagerImpl
Main checking method, contains all the logic: it checks the Server certificate chain, also against the hostname which can be set either at construction time or using TrustManagerImpl.setHostname(String).
checkType - Variable in class nl.nikhef.slcshttps.trust.HostnameChecker
the algorithm to follow to perform the check.
checkValidity() - Method in class nl.nikhef.slcshttps.trust.TrustCert
Method to check whether the certificate chain is valid, that is when the current time ≥ the latest not-before in the chain and ≤ the earliest not-after in the chain.
clientExpireAcknowl - Static variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
Whether a warning has been given about expiry.
clientExpireDate - Static variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
Expiry time of client side certificate (null for unset), can be set using HttxURLConnection.setClientExpireDate(Date).
clientExpireWarn - Static variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
Whether we want warnings, set at class initialization using the property "nl.nikhef.slcshttps.httxclientwarn" or using HttxURLConnection.setExpire(String).
clientExpireWarnAcknowl - Static variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
Whether a warning has been given about imminent expiry.
clientExpireWarnTime - Static variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
Time in milliseconds before expiry to warn the user, use 0 for warning only after actual expiry, set at class initialization using the property "nl.nikhef.slcshttps.httxclientwarntime" or using HttxURLConnection.setExpireWarnTime(String).
comm - Static variable in class nl.nikhef.slcshttps.PKCS12Https
The PKCS12Https.PKCS12Communicator to be used, can be set using PKCS12Https.setCommunicator(String).
comm - Variable in class nl.nikhef.slcshttps.SURFCAHttps
The SURFCAHttps.SURFCACommunicator to be used for this instance, either equal to SURFCAHttps.defaultComm or set using the constructor SURFCAHttps.SURFCAHttps(SURFCACommunicator).
comm - Static variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
The HttxURLConnection.HttxClientCommunicator used for communication about client certificate expiry, can be set using HttxURLConnection.setCommunicator(String).
comm - Static variable in class nl.nikhef.slcshttps.trust.TrustManagerImpl
The TrustManagerImpl.TrustCommunicator to be used, can be set using TrustManagerImpl.setCommunicator(String).
COMMPROP - Static variable in class nl.nikhef.slcshttps.PKCS12Https
Name of property defining which PKCS12Https.PKCS12Communicator to use: "nl.nikhef.slcshttps.comm".
COMMPROP - Static variable in class nl.nikhef.slcshttps.SURFCAHttps
Name of property defining which SURFCAHttps.SURFCACommunicator to use: "nl.nikhef.slcshttps.comm".
COMMPROP - Static variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
Name of property that sets the type of communicator: "nl.nikhef.slcshttps.comm", can be overridden using HttxURLConnection.setCommunicator(String).
COMMPROP - Static variable in class nl.nikhef.slcshttps.trust.TrustManagerImpl
Propertyname to set the type of communicator "nl.nikhef.slcshttps.comm".
commString - Static variable in class nl.nikhef.slcshttps.PKCS12Https
Contains the the value of the property "nl.nikhef.slcshttps.comm".
commString - Static variable in class nl.nikhef.slcshttps.SURFCAHttps
Contains the the value of the property "nl.nikhef.slcshttps.comm".
commString - Static variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
describes the type of communicator in use, initialized using the value of property "nl.nikhef.slcshttps.comm" by HttxURLConnection.setCommunicator(String).
commString - Static variable in class nl.nikhef.slcshttps.trust.TrustManagerImpl
describes the type of communicator in use, initialized using the value of property "nl.nikhef.slcshttps.comm" by TrustManagerImpl.setCommunicator(String).
confirm(String, String, String, String[], String[]) - Method in class nl.nikhef.slcshttps.gui.TrustPopupComm
method to ask the user for confirmation via a confirmation popup window.
confirm(String, String, String, String[], String[]) - Method in class nl.nikhef.slcshttps.trust.TrustManagerImpl.StdioComm
method to ask the user for confirmation using stdio/stderr.
confirm(String, String, String, String[], String[]) - Method in interface nl.nikhef.slcshttps.trust.TrustManagerImpl.TrustCommunicator
method to ask the user for confirmation.
confirmPopup(String) - Static method in class nl.nikhef.slcshttps.gui.GraphTools
Shows a confirm (OK / cancel) popup.
connect() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Connects an opened HttxURLConnection.
connection - Variable in class nl.nikhef.slcshttps.CAConnection
the actual connection to the CA.
ConsoleTools - Class in nl.nikhef.slcshttps.util
Static class providing tools for use with stdio/console.
ConsoleTools() - Constructor for class nl.nikhef.slcshttps.util.ConsoleTools
 
convertFromIPv4MappedAddress(byte[]) - Static method in class nl.nikhef.slcshttps.trust.HostnameChecker
Converts IPv4-Mapped address to IPv4 address.
copy() - Method in class nl.nikhef.slcshttps.trust.TrustCert.Status
Method to clone the Status.
copy(TrustCert.Status) - Method in class nl.nikhef.slcshttps.trust.TrustCert.Status
Method to copy the Status.
CryptoSSL - Class in nl.nikhef.slcshttps.crypto
The main task of this class is to provide a SSLSocketFactory for a given CryptoStore containing a client certificate and corresponding private key, this is the input needed for setting up Client Side authentication during SSL setup.
CryptoSSL(CryptoStore) - Constructor for class nl.nikhef.slcshttps.crypto.CryptoSSL
constructs a new CryptoSSL, initializing the CryptoSSL.keyManagers field using the given CryptoStore, while using the default TrustManager.
CryptoSSL(CryptoStore, TrustManager) - Constructor for class nl.nikhef.slcshttps.crypto.CryptoSSL
constructs a new CryptoSSL, initializing the CryptoSSL.keyManagers field using the given CryptoStore, parameter and the CryptoSSL.trustManagers field using the given TrustManager.
cryptoStore - Variable in class nl.nikhef.slcshttps.CAHttps
Contains, among others, the keypair, Certificate Signing Request (CSR), certificate.
CryptoStore - Class in nl.nikhef.slcshttps.crypto
This class is a holder for the different cryptographic objects: keypair (PrivateKey/PublicKey), certificate signing request (CSR) and a KeyStore containg the signed X509Certificate.
CryptoStore(int) - Constructor for class nl.nikhef.slcshttps.crypto.CryptoStore
Constructs a new CryptoStore, using a RSA keylength keyLen.
CryptoStore() - Constructor for class nl.nikhef.slcshttps.crypto.CryptoStore
Constructs a new CryptoStore, using a default RSA keylength 1024.
csr - Variable in class nl.nikhef.slcshttps.crypto.CryptoStore
Contains the CSR, initialized using CryptoStore.CSRinit() or CryptoStore.CSRinit(String), can be obtained using CryptoStore.getCSR().
CSR - Class in nl.nikhef.slcshttps.crypto
This class is a holder for a PKCS10 Certificate Signing Request, which also supplies methods to obtain a SHA1 hash of its DER encoding and a method to obtain a URL encoded PEM string.
CSR(String, PublicKey, PrivateKey) - Constructor for class nl.nikhef.slcshttps.crypto.CSR
Constructs a Certificate Signing Request for the given keypair using specified subjectDN.
CSR(PublicKey, PrivateKey) - Constructor for class nl.nikhef.slcshttps.crypto.CSR
Constructs a Certificate Signing Request for the keypair using a default CSR.DUMMY_DN (="C=X, O=Y, CN=Z").
CSRinit(String) - Method in class nl.nikhef.slcshttps.crypto.CryptoStore
Initializes a new certificate signing Request (CSR) for the given DN.
CSRinit() - Method in class nl.nikhef.slcshttps.crypto.CryptoStore
Initializes a new certificate signing request (CSR) with a default DN.

D

deactButton - Variable in class nl.nikhef.slcshttps.gui.SerialPanel
Dectivate the certificate for client side authentication.
defaultComm - Static variable in class nl.nikhef.slcshttps.SURFCAHttps
The default SURFCAHttps.SURFCACommunicator to be used for new instances of SURFCAHttps, can be set using SURFCAHttps.setCommunicator(String).
defaultHttpsSSLSocketFactory - Static variable in class nl.nikhef.slcshttps.CAHttps
The default SSLSocketFactory for a HttpsURLConnection, so that we can revert to it.
defaultHttxSSLSocketFactory - Static variable in class nl.nikhef.slcshttps.CAHttps
The default SSLSocketFactory for a HttxURLConnection, so that we can revert to it.
defaultSSLSocketFactory - Static variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
Default SSLSocketFactory, is initialized with an empty set of KeyManager and a TrustManagerImpl.
deleteCertificate(String) - Method in class nl.nikhef.slcshttps.crypto.CryptoStore
Removes the entry in the internal KeyStore which was stored with the given alias.
deleteCertificate() - Method in class nl.nikhef.slcshttps.crypto.CryptoStore
Removes the entry in the internal KeyStore which was stored with the default alias CryptoStore.CERT_ALIAS.
description - Variable in class nl.nikhef.slcshttps.gui.FileNameExtFilter
Description of this filter.
disconnect() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Disconnects an opened HttxURLConnection, which also resets the hostname and portnumber for the TrustManagerImpl.
DOWNLOADTEXT - Variable in class nl.nikhef.slcshttps.gui.SURFCAPopupComm
Text shown when the user is about to download his certificate.
DUMMY_DN - Static variable in class nl.nikhef.slcshttps.crypto.CSR
Default subject DN certificate signing requests is "C=X, O=Y, CN=Z".
dumpConnection(String) - Static method in class nl.nikhef.slcshttps.TestSURFCA
Helper method to open a HttpsURLConnection to stringURL and dump the server response to stdout.

E

echochar - Variable in class nl.nikhef.slcshttps.util.PasswordReader
Character to use for masking.
equals(Object) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
equals(TrustCert) - Method in class nl.nikhef.slcshttps.trust.TrustCert
Equals method, comparing two TrustCerts, which are considered equal when their server certificate (first in chain) is equal.
equals(X509Certificate) - Method in class nl.nikhef.slcshttps.trust.TrustCert
Equals method, comparing the server certificate (first in chain) against a X509Certificate.
errMsg - Static variable in class nl.nikhef.slcshttps.util.BareBonesBrowserLaunch
error message used upon failure.
error(String, Exception) - Method in class nl.nikhef.slcshttps.gui.PKCS12PopupComm
Called when an error occurs, showing a popup window with an error string about the filename (if non-null) and the Throwable.getMessage() from e (when non-null).
error(String, Exception) - Method in class nl.nikhef.slcshttps.gui.SURFCAInitDialog.EmptyCommunicator
Trivial method, called when an error occurs.
error(String, Exception) - Method in class nl.nikhef.slcshttps.gui.SURFCAPopupComm
Called upon error, it opens an error popup window with an error message using the text and Throwable.getMessage() from e (if non-null).
error(String, Exception) - Method in interface nl.nikhef.slcshttps.PKCS12Https.PKCS12Communicator
called when an error occurs.
error(String, Exception) - Method in class nl.nikhef.slcshttps.PKCS12Https.StdioComm
Called when an error occurs, printing an error string about the filename (if non-null) and the Throwable.getMessage() from e (when non-null) on stderr.
error(String, Exception) - Method in class nl.nikhef.slcshttps.SURFCAHttps.StdioComm
Called upon error.
error(String, Exception) - Method in interface nl.nikhef.slcshttps.SURFCAHttps.SURFCACommunicator
Called when an error occurs.
errorPopup(String, Exception) - Static method in class nl.nikhef.slcshttps.gui.GraphTools
Shows an error message popup using given text (newlines replaced with <BR>) and Exception (when non-null).
errorPopup(String) - Static method in class nl.nikhef.slcshttps.gui.GraphTools
Shows an error message popup using given text (newlines replaced with <BR>).
expired(String) - Method in class nl.nikhef.slcshttps.gui.HttxClientPopupComm
Method to ask the user for confirmation to continue since the client certificate has expired, using via a confirmation popup window.
expired(String) - Method in interface nl.nikhef.slcshttps.trust.HttxURLConnection.HttxClientCommunicator
Method to ask the user for confirmation to continue since the client certificate has expired.
expired(String) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection.StdioComm
Method to ask the user for confirmation to continue since the client certificate has expired, using stdio/stderr, any HTML italics tags are removed.
expired - Variable in class nl.nikhef.slcshttps.trust.TrustCert.Status
true when one of the certificates in the chain is expired.
EXPIREPROP - Static variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
Name of property that determines whether to warn: "nl.nikhef.slcshttps.httxclientwarn", default is true, see also HttxURLConnection.EXPIRETIMEPROP, can be overridden using HttxURLConnection.setExpire(String).
EXPIRETIMEPROP - Static variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
Name of property that determines when to give an 'about-to-expire' warning: "nl.nikhef.slcshttps.httxclientwarntime", value is number of seconds; when it is unspecified or invalid, 0 is assumed and only a warning upon actual expiry is given, see also HttxURLConnection.EXPIREPROP, can be overridden using HttxURLConnection.setExpireWarnTime(String).
extensions - Variable in class nl.nikhef.slcshttps.gui.FileNameExtFilter
Known extensions.

F

fileName - Variable in class nl.nikhef.slcshttps.PKCS12Https
filename of the PKCS12 file to be imported.
FileNameExtFilter - Class in nl.nikhef.slcshttps.gui
This class is a copy of javax.swing.filechooser.FileNameExtensionFilter which is only available in JDK1.6 onwards.
FileNameExtFilter(String, String...) - Constructor for class nl.nikhef.slcshttps.gui.FileNameExtFilter
Creates a FileNameExtFilter with the specified description and file name extensions.
FilePopup - Class in nl.nikhef.slcshttps.gui
Static class to let the user choose a file using a JFileChooser.
FilePopup() - Constructor for class nl.nikhef.slcshttps.gui.FilePopup
 

G

getAcceptedIssuers() - Static method in class nl.nikhef.slcshttps.trust.CertChainChecker
Method to get all the accepted issuers for certificate chain checking.
getAcceptedIssuers() - Method in class nl.nikhef.slcshttps.trust.TrustManagerImpl
Return an array of certificate authority certificates which are trusted for authenticating peers.
getAliasErrors(String) - Method in class nl.nikhef.slcshttps.trust.TrustCert
Creates a String describing all the errors for given alias, using its stored Status.
getAllowUserInteraction() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getButtonPanel(boolean, boolean) - Method in class nl.nikhef.slcshttps.gui.SerialPanel
Creates a JPanel containing the activate/deactivate buttons.
getButtons() - Method in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
Creates a JPanel with two cards (a single and a double button card) in a CardLayout, containing the different buttons for the textcards.
getCacertsKeyStore() - Static method in class nl.nikhef.slcshttps.trust.CertChainChecker
Method to find the correct truststore with trusted CA certificates.
getCAHttpsCertNo() - Method in class nl.nikhef.slcshttps.CAHttps
method to return the serial number of the certificate used by the SSLSocketFactory in setting up a HttpsURLConnection.
getCAHttxCertNo() - Method in class nl.nikhef.slcshttps.CAHttps
method to return the serial number of the certificate used by the SSLSocketFactory in setting up a HttxURLConnection.
getCards() - Method in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
Creates a JPanel with all the different textcards (CardLayout).
getCert() - Method in class nl.nikhef.slcshttps.CAConnection
Tries to retrieve a X509Certificate from the open connection, expecting content-type "application/pkix-cert".
getCertificate() - Method in class nl.nikhef.slcshttps.CAHttps
Method to get the X509Certificate currently in the internal CryptoStore.
getCertificate(String) - Method in class nl.nikhef.slcshttps.crypto.CryptoStore
Returns the X509Certificate which was stored with given alias, if this alias is for a KeyEntry (which comes with a certificate chain), the first certificate in the chain is returned.
getCertificate() - Method in class nl.nikhef.slcshttps.crypto.CryptoStore
Returns the X509Certificate which was stored using the default CryptoStore.CERT_ALIAS alias, if this alias is for a KeyEntry (which comes with a certificate chain), the first certificate in the chain is returned.
getCertPath(X509Certificate[]) - Static method in class nl.nikhef.slcshttps.trust.CertChainChecker
Returns a CertPath object for the given array of X509Certificate.
getCipherSuite() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getClientExpireDate() - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Method to get the expiry Date of the client side certificate, null for no certificate.
getCNs(X509Certificate) - Static method in class nl.nikhef.slcshttps.trust.HostnameChecker
Method to obtain all the CNs from a certificate.
getCommunicator() - Static method in class nl.nikhef.slcshttps.PKCS12Https
Returns the type of PKCS12Https.PKCS12Communicator used for user interaction.
getCommunicator() - Static method in class nl.nikhef.slcshttps.SURFCAHttps
Returns the default type of SURFCAHttps.SURFCACommunicator used for user interaction.
getCommunicator() - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Returns the type of HttxURLConnection.HttxClientCommunicator used for user interaction.
getCommunicator() - Static method in class nl.nikhef.slcshttps.trust.TrustManagerImpl
Returns the type of TrustManagerImpl.TrustCommunicator used for user interaction.
getConfirm(String) - Static method in class nl.nikhef.slcshttps.util.ConsoleTools
Confirmation from the user via console, returning true/false.
getConnectTimeout() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getContent(Class[]) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getContent() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getContentEncoding() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getContentLength() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getContentType() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getCSR() - Method in class nl.nikhef.slcshttps.crypto.CryptoStore
Returns the current CSR.
getDate() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getDefaultAllowUserInteraction() - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Calls URLConnection.getDefaultAllowUserInteraction().
getDefaultHostnameVerifier() - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Method to get the default HostnameVerifier for HttxURLConnection.
getDefaultSSLSocketFactory() - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Method to get the default SSLSocketFactory for HttxURLConnection.
getDefaultUseCaches() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getDescription() - Method in class nl.nikhef.slcshttps.gui.FileNameExtFilter
The description of this filter.
getDialog(CAHttps) - Static method in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
Static method to dislay a new SURFCAInitDialog.
getDoInput() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getDoOutput() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getErrors(String) - Method in class nl.nikhef.slcshttps.trust.TrustCert
Creates a String array, one for each error for the current connection, using the data in the TrustCert.status field.
getErrorStream() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getExpiration() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getExpire() - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Returns whether to check for client certificate expiry and warn about it.
getExpireWarnTime() - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Returns the number of milliseconds before actual expiry when a warning about imminent expiry of the client certificate is given.
getExtensions() - Method in class nl.nikhef.slcshttps.gui.FileNameExtFilter
Returns the set of file name extensions files are tested against.
getFile(String, String, String) - Static method in class nl.nikhef.slcshttps.gui.FilePopup
Shows a file chooser popup window (JFileChooser) in the default directory for the user.
getFile(String, String, String, String) - Static method in class nl.nikhef.slcshttps.gui.FilePopup
Shows a file chooser popup window (JFileChooser) in the specified directory.
getFile(String) - Method in class nl.nikhef.slcshttps.gui.PKCS12PopupComm
Method to get the PKCS12 filename from the user, using a popup.
getFile(String) - Method in interface nl.nikhef.slcshttps.PKCS12Https.PKCS12Communicator
method to get the PKCS12 filename from the user.
getFile(String) - Method in class nl.nikhef.slcshttps.PKCS12Https.StdioComm
Method to get the PKCS12 filename from the user, using stdout and ConsoleTools.readLine().
getFileInputStream(File) - Static method in class nl.nikhef.slcshttps.trust.CertChainChecker
Checks whether a file exists and can be opened.
getFileNameMap() - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Calls URLConnection.getFileNameMap().
getFollowRedirects() - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Calls HttpURLConnection.getFollowRedirects().
getHeaderField(String) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getHeaderField(int) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getHeaderFieldDate(String, long) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getHeaderFieldInt(String, int) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getHeaderFieldKey(int) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getHeaderFields() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getHostnameVerifier() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Method to get the HostnameVerifier for HttxURLConnection.
getIfModifiedSince() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getInputStream() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getInstance(byte) - Static method in class nl.nikhef.slcshttps.trust.HostnameChecker
Returns a HostnameChecker instance of the right type.
getInstanceFollowRedirects() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getKeyManagers() - Method in class nl.nikhef.slcshttps.crypto.CryptoStore
Returns a KeyManager[] array which can be used for, for example, setting up SSL connections.
getLastModified() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getLocalCertificates() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getLocalPrincipal() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getMaskHttps() - Method in class nl.nikhef.slcshttps.CAHttps
Getter method for private CAHttps.maskHttps.
getOldCert(X509Certificate) - Method in class nl.nikhef.slcshttps.trust.TrustManagerImpl
Finds a certificate in the list of known alias/certificates.
getOldErrors() - Method in class nl.nikhef.slcshttps.trust.TrustCert
Creates a String array, one for each known alias, each containing a list of all the errors for that alias.
getOutputStream() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getPassword(int) - Method in class nl.nikhef.slcshttps.crypto.CryptoStore
Creates a random password of length length from the set [a-zA-Z0-9].
getPassword(String) - Static method in class nl.nikhef.slcshttps.gui.PasswordPopup
Shows a password popup with given text as prompt and a JPasswordField.
getPassword(String) - Method in class nl.nikhef.slcshttps.gui.PKCS12PopupComm
Method to get the PKCS12 password from the user, using a popup.
getPassword(String) - Method in interface nl.nikhef.slcshttps.PKCS12Https.PKCS12Communicator
method to get the PKCS12 password from the user.
getPassword(String) - Method in class nl.nikhef.slcshttps.PKCS12Https.StdioComm
Method to get the PKCS12 password from the user, using ConsoleTools.getPassword(String).
getPassword(String) - Static method in class nl.nikhef.slcshttps.util.ConsoleTools
Provides a password prompt.
getPassword(InputStream, String) - Static method in class nl.nikhef.slcshttps.util.PasswordReader
Obtains a password from given InputStream.
getPeerPrincipal() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getPermission() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getReadTimeout() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getRequestMethod() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getRequestProperties() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getRequestProperty(String) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getResponse() - Method in class nl.nikhef.slcshttps.CAConnection
returns the CA output in String form, note that the output is only stored when it couldn't be interpreted as X509Certificate.
getResponseCode() - Method in class nl.nikhef.slcshttps.CAConnection
returns the HTTP POST response code.
getResponseCode() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getResponseMessage() - Method in class nl.nikhef.slcshttps.CAConnection
returns the HTTP POST response message, belonging to responseCode.
getResponseMessage() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getSerial(CAHttps, boolean) - Method in class nl.nikhef.slcshttps.gui.SerialPanel
Gets the serial number from the CAHttps for either HttxURLConnection (when httx is true) or HttpsURLConnection (otherwise).
getSerialString(BigInteger) - Static method in class nl.nikhef.slcshttps.CAHttps
method to convert a BigInteger certificate serial number into a String of the form 89:ab:12.
getServerCertificates() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getShowSuccess() - Static method in class nl.nikhef.slcshttps.CAHttps
Getter method for private CAHttps.showSuccess.
getShowSuccess() - Static method in class nl.nikhef.slcshttps.PKCS12Https
Getter method for the local private PKCS12Https.showSuccess.
getShowSuccess() - Static method in class nl.nikhef.slcshttps.SURFCAHttps
Getter method for the local private SURFCAHttps.showSuccess.
getSSLSocketFactory() - Method in class nl.nikhef.slcshttps.crypto.CryptoSSL
Creates a SSLSocketFactory, which provides both key and trust material during the setting up of an SSL session.
getSSLSocketFactory() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getStatus(String) - Method in class nl.nikhef.slcshttps.trust.TrustCert
Method to get the status of a known alias.
getSURFCAHttps() - Method in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
Getter method to for the internal CAHttps.
getURL() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getUseCaches() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
getUseHttps() - Method in class nl.nikhef.slcshttps.CAHttps
Getter method for private CAHttps.useHttps.
getUseHttx() - Method in class nl.nikhef.slcshttps.CAHttps
Getter method for private CAHttps.useHttx.
GraphTools - Class in nl.nikhef.slcshttps.gui
Static class providing several static helper methods for user interaction via a GUI, including popup methods for confirmation, errors etc.
GraphTools() - Constructor for class nl.nikhef.slcshttps.gui.GraphTools
 
guessContentTypeFromName(String) - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Calls URLConnection.guessContentTypeFromName(String).
guessContentTypeFromStream(InputStream) - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Calls URLConnection.guessContentTypeFromStream(InputStream).

H

hash() - Method in class nl.nikhef.slcshttps.crypto.CSR
Returns the SHA1 hash for the DER encoded CSR.
hashCode() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
host - Static variable in class nl.nikhef.slcshttps.trust.TrustManagerImpl
hostname of the open connection.
hostName - Variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
hostname part of the URL.
HostnameChecker - Class in nl.nikhef.slcshttps.trust
Class to check whether a certain certificate is valid for a certain hostname, either using TLS or LDAP scheme.
HostnameChecker(byte) - Constructor for class nl.nikhef.slcshttps.trust.HostnameChecker
Constructs a HostnameChecker for type checkType.
hostnameChecker - Static variable in class nl.nikhef.slcshttps.trust.TrustCert
Contains a HostnameChecker used for checking the hostnames.
hostVerifier - Static variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
Default HostnameVerifier, is initialized to a trivial one, since all functionality is in the TrustManagerImpl.
httpImpl - Variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
Masked HttpURLConnection or HttpsURLConnection.
HTTPS_PROP - Static variable in class nl.nikhef.slcshttps.CAHttps
Property "nl.nikhef.slcshttps.https" defines whether to use the client side certificate for HttxURLConnection and/or HttpsURLConnection.
HttxClientPopupComm - Class in nl.nikhef.slcshttps.gui
Implementation of HttxURLConnection.HttxClientCommunicator using popup windows.
HttxClientPopupComm() - Constructor for class nl.nikhef.slcshttps.gui.HttxClientPopupComm
 
HttxURLConnection - Class in nl.nikhef.slcshttps.trust
This class extends a HttpsURLConnection that can use a TrustManager that not only can check the certificate chain but also the hostname against the server certificate.
HttxURLConnection(HttpURLConnection) - Constructor for class nl.nikhef.slcshttps.trust.HttxURLConnection
Constructs a HttxURLConnection from given HttpURLConnection or HttpsURLConnection (a subclass of the former).
HttxURLConnection(URL) - Constructor for class nl.nikhef.slcshttps.trust.HttxURLConnection
Constructs a HttxURLConnection to url.
HttxURLConnection.HttxClientCommunicator - Interface in nl.nikhef.slcshttps.trust
Interface for HttxURLConnection communication about client certificate expiration.
HttxURLConnection.StdioComm - Class in nl.nikhef.slcshttps.trust
This Implementation uses only stdio/stderr for I/O.
HttxURLConnection.StdioComm() - Constructor for class nl.nikhef.slcshttps.trust.HttxURLConnection.StdioComm
 

I

importPKCS12(KeyStore, char[]) - Method in class nl.nikhef.slcshttps.crypto.CryptoStore
Imports a X509Certificate and keypair from an existing PKCS12 KeyStore protected with password.
INADDR16SZ - Static variable in class nl.nikhef.slcshttps.trust.HostnameChecker
Number of bytes for a IPv6 address.
INADDR4SZ - Static variable in class nl.nikhef.slcshttps.trust.HostnameChecker
Number of bytes for a IPv4 address.
init(CryptoStore) - Method in class nl.nikhef.slcshttps.crypto.CryptoSSL
initializes the CryptoSSL.keyManagers field using the give CryptoStore and the CryptoSSL.trustManagers field to use the default TrustManager.
init(CryptoStore, TrustManager) - Method in class nl.nikhef.slcshttps.crypto.CryptoSSL
initializes the CryptoSSL.keyManagers and CryptoSSL.trustManagers fields using the given CryptoStore and TrustManager parameters.
initCertFactory() - Static method in class nl.nikhef.slcshttps.trust.CertChainChecker
Static method creating a new CertificateFactory.
initCertValidator() - Static method in class nl.nikhef.slcshttps.trust.CertChainChecker
Static method creating a new CertPathValidator.
initialize(String) - Method in class nl.nikhef.slcshttps.CAHttps
Abstract method to initialize the communication with the CA.
initialize() - Method in class nl.nikhef.slcshttps.PKCS12Https
method to initialize the import: this consists of having the user pick a file, entering the password and reading in the PKCS12 file.
initialize(String) - Method in class nl.nikhef.slcshttps.PKCS12Https
method to initialize the import: this consists of having the user pick a file when path denotes a directory, entering the password and reading in the PKCS12 file.
initialize(String, String) - Method in class nl.nikhef.slcshttps.PKCS12Https
method to initialize the import: this consists of having the user pick a file when path denotes a directory reading in the PKCS12 file using the specified password.
initialize() - Method in class nl.nikhef.slcshttps.SURFCAHttps
method to initialize contact with the CA: this consists of sending the SHA1 hash of the CSR via a HTTP GET to a URL, constructed using the property "nl.nikhef.slcshttps.AUTH_URL", using a webbrowser, which then redirects via Shibboleth to a Shibboleth IdP.
initialize(String) - Method in class nl.nikhef.slcshttps.SURFCAHttps
method to initialize contact with the CA: this consists of sending the SHA1 hash of the CSR via a HTTP GET to a URL, constructed using the parameter authURL using a webbrowser, which then redirects via Shibboleth to a Shibboleth IdP.
initPKIXParameters() - Static method in class nl.nikhef.slcshttps.trust.CertChainChecker
Static method to initialize the PKIXBuilderParameters for CertPathValidator.
INSTANCE_LDAP - Static variable in class nl.nikhef.slcshttps.trust.HostnameChecker
Contains the HostnameChecker for type LDAP.
INSTANCE_TLS - Static variable in class nl.nikhef.slcshttps.trust.HostnameChecker
Contains the HostnameChecker for type TLS.
INT16SZ - Static variable in class nl.nikhef.slcshttps.trust.HostnameChecker
used in IPv6 checking.
isCellEditable(int, int) - Method in class nl.nikhef.slcshttps.gui.NonEditableDefaultTableModel
Overwrites DefaultTableModel.isCellEditable(int,int), always returning false.
isGraphic() - Static method in class nl.nikhef.slcshttps.gui.GraphTools
Method to determine if a GUI is available.
isIpAddress(String) - Static method in class nl.nikhef.slcshttps.trust.HostnameChecker
Test whether the given hostname looks like a literal IPv4 or IPv6 address.
isIPv4LiteralAddress(String) - Static method in class nl.nikhef.slcshttps.trust.HostnameChecker
Checks whether src is an IPv4 address.
isIPv4MappedAddress(byte[]) - Static method in class nl.nikhef.slcshttps.trust.HostnameChecker
Utility routine to check if the InetAddress is an IPv4 mapped IPv6 address.
isIPv6LiteralAddress(String) - Static method in class nl.nikhef.slcshttps.trust.HostnameChecker
Checks whether src is an IPv6 address.
isMatched(String, String) - Method in class nl.nikhef.slcshttps.trust.HostnameChecker
Returns true if name matches against template.

K

KEYLENGTH - Static variable in class nl.nikhef.slcshttps.crypto.CryptoStore
default keylength is 1024.
keyManagers - Variable in class nl.nikhef.slcshttps.crypto.CryptoSSL
Contains the KeyManagers to be used for client side authentication.
keyStore - Variable in class nl.nikhef.slcshttps.crypto.CryptoStore
Keystore containing the signed X509Certificate and corresponding PrivateKey.
knownAliases - Variable in class nl.nikhef.slcshttps.trust.TrustCert
Contains a list of already seen and accepted aliases (hostname:portnumber) for this certificate chain, with their status at the time they were accepted.

L

lowerCaseExtensions - Variable in class nl.nikhef.slcshttps.gui.FileNameExtFilter
Cached extensions.

M

main(String[]) - Static method in class nl.nikhef.slcshttps.TestSURFCA
Main method.
maskHttps - Static variable in class nl.nikhef.slcshttps.CAHttps
Is true when property "nl.nikhef.slcshttps.https" equals mask.
maskHttps - Variable in class nl.nikhef.slcshttps.gui.SerialPanel
whether or not Https is masked by CAPanel, what is actually shown by this SerialPanel is determined by the parameter in SerialPanel.SerialPanel(CAHttps,boolean), masking means: show only Httx status, but update both Https and Httx.
masking - Variable in class nl.nikhef.slcshttps.util.PasswordReader
Indicate whether characters are masked.
match(String, X509Certificate) - Method in class nl.nikhef.slcshttps.trust.HostnameChecker
Tries to match the X509Certificate against the given expectedName.
matchAllWildcards(String, String) - Static method in class nl.nikhef.slcshttps.trust.HostnameChecker
Returns true if name matches against template.
matchDNS(String, X509Certificate) - Method in class nl.nikhef.slcshttps.trust.HostnameChecker
Check if the certificate allows use of the given DNS name.
matchDNS(String, X509Certificate, boolean) - Method in class nl.nikhef.slcshttps.trust.HostnameChecker
Check if the certificate allows use of the given DNS name.
matchIP(String, X509Certificate) - Static method in class nl.nikhef.slcshttps.trust.HostnameChecker
Check if the certificate allows use of the given IP address.
matchLeftmostWildcard(String, String) - Static method in class nl.nikhef.slcshttps.trust.HostnameChecker
Returns true if name matches against template.
matchWildCards(String, String) - Static method in class nl.nikhef.slcshttps.trust.HostnameChecker
Returns true if the name matches against the template that may contain wildcard char *.

N

nameValid - Variable in class nl.nikhef.slcshttps.trust.TrustCert.Status
true when the hostname is valid for the certificate.
nl.nikhef.slcshttps - package nl.nikhef.slcshttps
Provides classes to communicate with an online CA, in particular the one implemented by SURFnet in collaboration with the Max Planck Institute for Psycholinguistics and Nikhef, in order to setup client-side authentication for https connections.
nl.nikhef.slcshttps.crypto - package nl.nikhef.slcshttps.crypto
This package provides a set of classes to help setup SSL client side authentication.
nl.nikhef.slcshttps.gui - package nl.nikhef.slcshttps.gui
This package provides a diverse set of classes needed for the GUI of the packages nl.nikhef.slcshttps and nl.nikhef.slcshttps.trust.
nl.nikhef.slcshttps.trust - package nl.nikhef.slcshttps.trust
This package provides classes to interactively let the user accept or refuse invalid server certificates in a way similar to the behaviour of modern webbrowsers.
nl.nikhef.slcshttps.util - package nl.nikhef.slcshttps.util
This package provides a diverse set of general helper classes.
NonEditableDefaultTableModel - Class in nl.nikhef.slcshttps.gui
Class doing (almost) the same as DefaultTableModel except the default is NOT to allow editing of the cells.
NonEditableDefaultTableModel() - Constructor for class nl.nikhef.slcshttps.gui.NonEditableDefaultTableModel
Constructs a default NonEditableDefaultTableModel.
NonEditableDefaultTableModel(int, int) - Constructor for class nl.nikhef.slcshttps.gui.NonEditableDefaultTableModel
Constructs a NonEditableDefaultTableModel with rowCount rows and columnCount columns.
notYet - Variable in class nl.nikhef.slcshttps.trust.TrustCert.Status
true when one of the certificates in the chain is not yet valid.

O

oldSurfCA - Variable in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
CAHttps instance passed into the constructor, used when initialization fails or is aborted, to revert.
openConnection(URL) - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Creates and returns a new HttxURLConnection for given url.
openURL(URL) - Static method in class nl.nikhef.slcshttps.util.BareBonesBrowserLaunch
Opens a webbrowser to a URL.
openURL(String) - Static method in class nl.nikhef.slcshttps.util.BareBonesBrowserLaunch
opens a webbrowser to a URL, tries first the JDK 1.6 java.awt.Desktop.getDesktop().browse(new URI(url)) method, if that fails the action is platform dependent.
optionPaneSetFocus(JComponent) - Static method in class nl.nikhef.slcshttps.gui.GraphTools
Helper method to set the focus component of a JOptionPane.
OS_MAC - Static variable in class nl.nikhef.slcshttps.util.BareBonesBrowserLaunch
String to identify Mac OS, it should start with "Mac OS".
OS_WIN - Static variable in class nl.nikhef.slcshttps.util.BareBonesBrowserLaunch
String to identify Windows, it should start with "Windows".

P

password - Variable in class nl.nikhef.slcshttps.crypto.CryptoStore
Password for entry in CryptoStore.keyStore, initialized in constructor to a random value.
PASSWORD_LENGTH - Static variable in class nl.nikhef.slcshttps.crypto.CryptoStore
default length for keystore-entry random CryptoStore.password is 16.
PasswordPopup - Class in nl.nikhef.slcshttps.gui
Static class to get a password from the user via a popup window.
PasswordPopup() - Constructor for class nl.nikhef.slcshttps.gui.PasswordPopup
 
PasswordReader - Class in nl.nikhef.slcshttps.util
PasswordReader reads a password and masks the typed inputs, only needed when we use JDK1.5, for 1.6 use java.io.Console.readPassword().
PasswordReader(String) - Constructor for class nl.nikhef.slcshttps.util.PasswordReader
Constructs a PasswordReader using the given prompt.
pemString() - Method in class nl.nikhef.slcshttps.crypto.CSR
Returns a PEMstring for the CSR as a URL encoded (UTF-8) String.
PKCS12Https - Class in nl.nikhef.slcshttps
Implementation of the abstract CAHttps for importing a PKCS12 file from disk.
PKCS12Https() - Constructor for class nl.nikhef.slcshttps.PKCS12Https
Constructs a default PKCS12Https.
PKCS12Https.PKCS12Communicator - Interface in nl.nikhef.slcshttps
Interface for PKCS12Https communication with the user.
PKCS12Https.StdioComm - Class in nl.nikhef.slcshttps
This Implementation uses only stdio/stderr for I/O.
PKCS12Https.StdioComm() - Constructor for class nl.nikhef.slcshttps.PKCS12Https.StdioComm
 
pkcs12Password - Variable in class nl.nikhef.slcshttps.PKCS12Https
password for the PKCS12 file (both for the file and privatekey).
PKCS12PopupComm - Class in nl.nikhef.slcshttps.gui
Implementation of PKCS12Https.PKCS12Communicator using popup windows.
PKCS12PopupComm() - Constructor for class nl.nikhef.slcshttps.gui.PKCS12PopupComm
 
pkcs12Store - Variable in class nl.nikhef.slcshttps.PKCS12Https
internal KeyStore which will hold the contents of the file.
pkixParameters - Static variable in class nl.nikhef.slcshttps.trust.CertChainChecker
PKIXParameters used by the CertChainChecker.certValidator, they use the CertChainChecker.trustStore and are initialized at startup using CertChainChecker.initPKIXParameters().
port - Static variable in class nl.nikhef.slcshttps.trust.TrustManagerImpl
portnumber of the open connection, note that for a certain combination hostname/portnumber there can only be one certificate chain; the portnumber is initialized to 443, the default for HTTPS.
portNumber - Variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
portnumber of the URL.
POST_CONTENT_TYPE - Variable in class nl.nikhef.slcshttps.CAConnection
mime-type of HTTP POST contents is "application/x-www-form-urlencoded".
postBrowse() - Method in class nl.nikhef.slcshttps.gui.SURFCAInitDialog.EmptyCommunicator
Trivial method, called just after the webbrowser is started.
postBrowse() - Method in class nl.nikhef.slcshttps.gui.SURFCAPopupComm
Called just after the webbrowser is started, prints a text in a popup window and waits until the user confirms he is ready with the webbrowser.
postBrowse() - Method in class nl.nikhef.slcshttps.SURFCAHttps.StdioComm
Called just after the webbrowser is started, prints a text and waits for confirmation, effectively blocking execution until the user is ready with the webbrowser.
postBrowse() - Method in interface nl.nikhef.slcshttps.SURFCAHttps.SURFCACommunicator
Called just after the webbrowser is started, which can be used to give us feedback when the user is ready with the webbrowser.
postString(String) - Method in class nl.nikhef.slcshttps.CAConnection
Sends String string to the opened URL using a HTTP POST with content-type "application/x-www-form-urlencoded".
preBrowse() - Method in class nl.nikhef.slcshttps.gui.SURFCAInitDialog.EmptyCommunicator
Trivial method, called just before the webbrowser is started.
preBrowse() - Method in class nl.nikhef.slcshttps.gui.SURFCAPopupComm
Called just before the webbrowser is started, prints an informative text in a popup window and waits until the user confirms he is ready to start the browser.
preBrowse() - Method in class nl.nikhef.slcshttps.SURFCAHttps.StdioComm
Called just before the webbrowser is started, prints a text and waits for confirmation.
preBrowse() - Method in interface nl.nikhef.slcshttps.SURFCAHttps.SURFCACommunicator
Called just before the webbrowser is started.
privateKey - Variable in class nl.nikhef.slcshttps.crypto.CryptoStore
Contains private key, will be initialized in constructor.
publicKey - Variable in class nl.nikhef.slcshttps.crypto.CryptoStore
Contains public key, will be initialized in constructor.

R

readLine() - Static method in class nl.nikhef.slcshttps.util.ConsoleTools
Reads and returns a line from the console (System.in).
removeAlias(String) - Method in class nl.nikhef.slcshttps.trust.TrustCert
Removes the given alias from the list of aliases for this TrustCert.
removeCert(String, TrustCert) - Method in class nl.nikhef.slcshttps.trust.TrustManagerImpl
Removes an alias/certificate from the list of known certificates.
resetHttpsSSLSocketFactory() - Method in class nl.nikhef.slcshttps.CAHttps
method to restore the default SSLSocketFactory for HttpsURLConnection to its startup default.
resetHttxSSLSocketFactory() - Method in class nl.nikhef.slcshttps.CAHttps
method to restore the default SSLSocketFactory for HttxURLConnection to its startup default.
resetSSLSocketFactory() - Method in class nl.nikhef.slcshttps.CAHttps
method to restore the default SSLSocketFactory for HttpsURLConnection and/or HttpsURLConnection to their startup defaults.
RESP_CONTENT_TYPE - Variable in class nl.nikhef.slcshttps.CAConnection
expected mime-type for a correct response type is "application/pkix-cert".
response - Variable in class nl.nikhef.slcshttps.CAConnection
response is filled by CAConnection.storeResponse() when CAConnection.getCert() fails and can be retrieved using CAConnection.getResponse().
responseCode - Variable in class nl.nikhef.slcshttps.CAConnection
responseCode is set after posting data by CAConnection.postString(String).
responseMessage - Variable in class nl.nikhef.slcshttps.CAConnection
responseMessage is set after posting data by CAConnection.postString(String).
retry(String, Exception) - Method in class nl.nikhef.slcshttps.gui.SURFCAInitDialog.EmptyCommunicator
Trivial method, called when an error occurs which might be fixed by the user, always returning false meaning do not retry.
retry(String, Exception) - Method in class nl.nikhef.slcshttps.gui.SURFCAPopupComm
Identical to SURFCAPopupComm.error(String,Exception) except that it is called when an error occurs that might be fixed by the user.
retry(String, Exception) - Method in class nl.nikhef.slcshttps.SURFCAHttps.StdioComm
Identical to SURFCAHttps.StdioComm.error(String,Exception) except that it is called when an error occurs that might be fixed by the user.
retry(String, Exception) - Method in interface nl.nikhef.slcshttps.SURFCAHttps.SURFCACommunicator
Identical to SURFCAHttps.SURFCACommunicator.error(String,Exception) except that it is called when an error occurs that might be fixed by the user.
retryPopup(String, Exception) - Static method in class nl.nikhef.slcshttps.gui.GraphTools
Shows an error message popup using given text (newlines replaced with <BR>) and Exception (when non-null) giving the user the option to choose to retry.
retryPopup(String) - Static method in class nl.nikhef.slcshttps.gui.GraphTools
Shows an error message popup using given text (newlines replaced with <BR>) giving the user the option to choose to retry.
run() - Method in class nl.nikhef.slcshttps.util.PasswordReader
Begin masking until asked to stop.

S

serialModel - Variable in class nl.nikhef.slcshttps.gui.SerialPanel
Contains the serialnumber, updated by SerialPanel.actButton and SerialPanel.deactButton.
SerialPanel - Class in nl.nikhef.slcshttps.gui
Class to create a panel showing information about the serial number of the client side certificate in use for the default SSLSocketFactory for HttpsURLConnection or HttxURLConnection and and buttons to change it.
SerialPanel(CAHttps, boolean) - Constructor for class nl.nikhef.slcshttps.gui.SerialPanel
Constructs a SerialPanel for either Httx or Https, depending on the value of httx.
setAllowUserInteraction(boolean) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
setCertChain(X509Certificate[]) - Method in class nl.nikhef.slcshttps.trust.TrustCert
Sets the certificate chain for this TrustCert.
setChunkedStreamingMode(int) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
setClientExpireDate(Date) - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Method to set the expiry Date of the client side certificate, null for no certificate.
setCommunicator(String) - Static method in class nl.nikhef.slcshttps.PKCS12Https
Sets the PKCS12Https.PKCS12Communicator to use for user interaction, it checks whether the requested method is possible, otherwise use the default.
setCommunicator(String) - Static method in class nl.nikhef.slcshttps.SURFCAHttps
Sets the default SURFCAHttps.SURFCACommunicator to use for user interaction, the actual communicator used for new instances of SURFCAHttps can be overriden using the constructor SURFCAHttps.SURFCAHttps(SURFCACommunicator).
setCommunicator(String) - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Sets the type of HttxURLConnection.HttxClientCommunicator based on commInput.
setCommunicator(String) - Static method in class nl.nikhef.slcshttps.trust.TrustManagerImpl
Sets the type of TrustManagerImpl.TrustCommunicator based on commInput.
setConnectTimeout(int) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
setContentHandlerFactory(ContentHandlerFactory) - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Calls URLConnection.setContentHandlerFactory(ContentHandlerFactory).
setDefaultAllowUserInteraction(boolean) - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Calls URLConnection.setDefaultAllowUserInteraction(boolean).
setDefaultHostnameVerifier(HostnameVerifier) - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Empty setter method, in order to override the method.
setDefaultSSLSocketFactory(SSLSocketFactory) - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Sets the default SSLSocketFactory for HttxURLConnection.
setDefaultUseCaches(boolean) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
setDoInput(boolean) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
setDoOutput(boolean) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
setEchoChar(char) - Method in class nl.nikhef.slcshttps.util.PasswordReader
Sets the char to replace input (mask).
setExpire(String) - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Sets whether to check for client certificate expiry and warn about it.
setExpireWarnTime(String) - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Sets the time before expiry of a client certificate to give a warning.
setExtremes() - Method in class nl.nikhef.slcshttps.trust.TrustCert
Finds the latest not-before time and the earliest not-after time for the certificate chain, thus finding the smallest interval for which the whole chain is valid.
setFileNameMap(FileNameMap) - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Calls URLConnection.setFileNameMap(FileNameMap).
setFixedLengthStreamingMode(int) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
setFollowRedirects(boolean) - Static method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Calls HttpURLConnection.setFollowRedirects(boolean).
setHostname(String) - Static method in class nl.nikhef.slcshttps.trust.TrustManagerImpl
Sets the (static) hostname to be used during checking.
setHostnameVerifier(HostnameVerifier) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
Empty setter method, in order to override the method.
setHttpsSSLSocketFactory() - Method in class nl.nikhef.slcshttps.CAHttps
method to change the default SSLSocketFactory for HttpsURLConnection such that it uses the certificate for client side authentication.
setHttxSSLSocketFactory() - Method in class nl.nikhef.slcshttps.CAHttps
method to change the default SSLSocketFactory for HttxURLConnection such that it uses the certificate for client side authentication.
setIfModifiedSince(long) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
setInstanceFollowRedirects(boolean) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
setPort(int) - Static method in class nl.nikhef.slcshttps.trust.TrustManagerImpl
Sets the (static) portnumber to be used during checking.
setReadTimeout(int) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
setRequestMethod(String) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
setRequestProperty(String, String) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
setShowSuccess(boolean) - Static method in class nl.nikhef.slcshttps.CAHttps
Setter method for private CAHttps.showSuccess.
setShowSuccess(boolean) - Static method in class nl.nikhef.slcshttps.PKCS12Https
Setter method for the local private PKCS12Https.showSuccess.
setShowSuccess(boolean) - Static method in class nl.nikhef.slcshttps.SURFCAHttps
Setter method for the local private SURFCAHttps.showSuccess.
setSSLSocketFactory() - Method in class nl.nikhef.slcshttps.CAHttps
method to change the default SSLSocketFactory for HttxURLConnection and/or HttpsURLConnection such that they use the certificate for client side authentication.
setSSLSocketFactory(SSLSocketFactory) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
setUseCaches(boolean) - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
showBoth - Variable in class nl.nikhef.slcshttps.gui.SerialPanel
whether or Https AND Httx status are shown by CAPanel, what is actually shown by this SerialPanel is determined by the parameter in SerialPanel.SerialPanel(CAHttps,boolean).
showCATool(CAHttps) - Static method in class nl.nikhef.slcshttps.gui.CATool
static method showing a popup containing a CAPanel for given caHttps.
showHttx - Variable in class nl.nikhef.slcshttps.gui.SerialPanel
whether or not the Httx is shown by CAPanel, what is actually shown by this SerialPanel is determined by the parameter in SerialPanel.SerialPanel(CAHttps,boolean).
showSuccess - Static variable in class nl.nikhef.slcshttps.CAHttps
Is equal to the value of "nl.nikhef.slcshttps.acknowledge" when the latter is set, or defaults to true.
showSuccess - Static variable in class nl.nikhef.slcshttps.PKCS12Https
Defines whether to acknowledge successful certificate import, download etc.
showSuccess - Static variable in class nl.nikhef.slcshttps.SURFCAHttps
Defines whether to acknowledge successful certificate import, download etc.
ssl - Variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
whether this is a HTTPS or HTTP connection.
status - Variable in class nl.nikhef.slcshttps.trust.TrustCert
Current status of the certificate(chain).
stopMasking() - Method in class nl.nikhef.slcshttps.util.PasswordReader
Instruct the thread to stop masking.
storeCertificate(String) - Method in class nl.nikhef.slcshttps.CAHttps
Abstract method to get certificate at CA and store it in the internal CryptoStore.
storeCertificate(X509Certificate) - Method in class nl.nikhef.slcshttps.crypto.CryptoStore
Stores X509Certificate x509Cert in the internal CryptoStore.keyStore, using the constant alias CryptoStore.CERT_ALIAS and random password CryptoStore.password.
storeCertificate() - Method in class nl.nikhef.slcshttps.PKCS12Https
method to finalize the import: this consists of getting the certificate/key from the pkcs12Store loaded in PKCS12Https.initialize() and putting it in the internal CryptoStore.
storeCertificate(boolean) - Method in class nl.nikhef.slcshttps.PKCS12Https
method to finalize the import: this consists of getting the certificate/key from the pkcs12Store loaded in PKCS12Https.initialize() and putting it in the internal CryptoStore; it optionally sets the SSLSocketFactory.
storeCertificate(String) - Method in class nl.nikhef.slcshttps.PKCS12Https
method to finalize the import: this consists of getting the certificate/key from the pkcs12Store loaded in PKCS12Https.initialize() and putting it in the internal CryptoStore; uses password for the import password.
storeCertificate(String, boolean) - Method in class nl.nikhef.slcshttps.PKCS12Https
method to finalize the import: this consists of getting the certificate/key from the pkcs12Store loaded in PKCS12Https.initialize() and putting it in the internal CryptoStore; it optionally sets the SSLSocketFactory and uses password for the import password.
storeCertificate(char[], boolean) - Method in class nl.nikhef.slcshttps.PKCS12Https
method to finalize the import: this consists of getting the certificate/key from the pkcs12Store loaded in PKCS12Https.initialize() and putting it in the internal CryptoStore; it optionally sets the SSLSocketFactory and uses passwordCharArr for the import password.
storeCertificate() - Method in class nl.nikhef.slcshttps.SURFCAHttps
method to retrieve the certificate from the CA after successful authentication.
storeCertificate(boolean) - Method in class nl.nikhef.slcshttps.SURFCAHttps
method to retrieve the certificate from the CA after successful authentication.
storeCertificate(String) - Method in class nl.nikhef.slcshttps.SURFCAHttps
method to retrieve the certificate from the CA after successful authentication.
storeCertificate(String, boolean) - Method in class nl.nikhef.slcshttps.SURFCAHttps
method to retrieve the certificate from the CA after successful authentication.
storeResponse() - Method in class nl.nikhef.slcshttps.CAConnection
Stores the response from the server into the internal String field CAConnection.response.
subject1Name - Variable in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
Subject related text used on card 1.
subject7Name - Variable in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
Subject related text used on card 7.
subject8Name - Variable in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
Subject related text used on card 8.
success(String, String) - Method in class nl.nikhef.slcshttps.gui.PKCS12PopupComm
Called when the PKCS12 file is successfully imported and the certificate stored; when PKCS12Https.getShowSuccess() equals true it will show a confirmation popup.
success(String) - Method in class nl.nikhef.slcshttps.gui.SURFCAInitDialog.EmptyCommunicator
Called when the interaction has been successful and the certificate stored, which is just before the last textcard is shown is SURFCAInitDialog, for which it sets an appropriate text about the Subject DN.
success(String) - Method in class nl.nikhef.slcshttps.gui.SURFCAPopupComm
It is called when interaction has been successful and the certificate stored, when SURFCAHttps.getShowSuccess() equals true, it will then show a confirmation popup.
success(String, String) - Method in interface nl.nikhef.slcshttps.PKCS12Https.PKCS12Communicator
called when the PKCS12 file is successfully imported and the certificate stored.
success(String, String) - Method in class nl.nikhef.slcshttps.PKCS12Https.StdioComm
Called when the PKCS12 file is successfully imported and the certificate stored; when PKCS12Https.getShowSuccess() equals true it will print a confirmation.
success(String) - Method in class nl.nikhef.slcshttps.SURFCAHttps.StdioComm
It is called when interaction has been successful and the certificate stored, when SURFCAHttps.getShowSuccess() equals true, it will then print a confirmation.
success(String) - Method in interface nl.nikhef.slcshttps.SURFCAHttps.SURFCACommunicator
Called when the interaction has been successful and the certificate stored.
SUCCESS_PROP - Static variable in class nl.nikhef.slcshttps.CAHttps
Property "nl.nikhef.slcshttps.acknowledge" defines whether to acknowledge successful certificate import, download etc.
successPopup(String) - Static method in class nl.nikhef.slcshttps.gui.GraphTools
Shows a success message popup using given text.
surfCA - Variable in class nl.nikhef.slcshttps.gui.SURFCAInitDialog
this will be the new CAHttps, which is an instance of SURFCAHttps, but initially will be equal to the CAHttps that is passed to the constructor; it can be retrieved using SURFCAInitDialog.getSURFCAHttps().
SURFCAHttps - Class in nl.nikhef.slcshttps
Implementation of the abstract CAHttps for obtaining a certificate from the SURFnet online CA.
SURFCAHttps() - Constructor for class nl.nikhef.slcshttps.SURFCAHttps
constructs a default SURFCAHttps object, which includes creation of a Certificate Signing Request (CSR).
SURFCAHttps(SURFCAHttps.SURFCACommunicator) - Constructor for class nl.nikhef.slcshttps.SURFCAHttps
constructs a SURFCAHttps object and will use communicator for communication with the user.
SURFCAHttps(PrintStream, PrintStream, InputStream, SURFCAHttps.SURFCACommunicator) - Constructor for class nl.nikhef.slcshttps.SURFCAHttps
constructs a SURFCAHttps object and changes stdout/stdin to the streams specified.
SURFCAHttps.StdioComm - Class in nl.nikhef.slcshttps
Implementation of a SURFCAHttps.SURFCACommunicator using simple text via stdin/stderr/stdout.
SURFCAHttps.StdioComm() - Constructor for class nl.nikhef.slcshttps.SURFCAHttps.StdioComm
 
SURFCAHttps.SURFCACommunicator - Interface in nl.nikhef.slcshttps
Interface for SURFCAHttps communication with the user.
SURFCAInitDialog - Class in nl.nikhef.slcshttps.gui
Class providing an extension to JDialog guiding the user through the online CA handshake for a SURFCAHttps using a CardLayout.
SURFCAInitDialog(CAHttps) - Constructor for class nl.nikhef.slcshttps.gui.SURFCAInitDialog
Constructs a SURFCAInitDialog, which sets up the dialog for the first stage, the next stages are reached using actions via SURFCAInitDialog.actionPerformed(ActionEvent).
SURFCAInitDialog.EmptyCommunicator - Class in nl.nikhef.slcshttps.gui
This is a (private) almost trivial implementation of SURFCAHttps.SURFCACommunicator which is needed since all communication is done through the SURFCAInitDialog.
SURFCAInitDialog.EmptyCommunicator() - Constructor for class nl.nikhef.slcshttps.gui.SURFCAInitDialog.EmptyCommunicator
 
SURFCAPopupComm - Class in nl.nikhef.slcshttps.gui
Implementation of a SURFCAHttps.SURFCACommunicator using popup windows instead of the default SURFCAHttps.StdioComm.
SURFCAPopupComm() - Constructor for class nl.nikhef.slcshttps.gui.SURFCAPopupComm
 

T

TestSURFCA - Class in nl.nikhef.slcshttps
Test class providing a TestSURFCA.main(String[]) method to test SURFCAHttps and PKCS12Https.
TestSURFCA() - Constructor for class nl.nikhef.slcshttps.TestSURFCA
 
textToNumericFormatV4(String) - Static method in class nl.nikhef.slcshttps.trust.HostnameChecker
Converts IPv4 address in its textual presentation form into its numeric binary form.
textToNumericFormatV6(String) - Static method in class nl.nikhef.slcshttps.trust.HostnameChecker
Convert IPv6 presentation level address to network order binary form.
toString() - Method in class nl.nikhef.slcshttps.gui.FileNameExtFilter
Returns a string representation of the FileNameExtFilter.
toString() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 
TrustCert - Class in nl.nikhef.slcshttps.trust
This class contains all fields and methods to check the validity of a certificate chain for use as a trusted server certificate, including storing for reuse.
TrustCert() - Constructor for class nl.nikhef.slcshttps.trust.TrustCert
Constructs a default TrustCert.
TrustCert(X509Certificate[]) - Constructor for class nl.nikhef.slcshttps.trust.TrustCert
Constructs a TrustCert from a X509Certificate chain.
TrustCert.Status - Class in nl.nikhef.slcshttps.trust
Nested class, contains the status fields relevant for an alias: whether the alias was added for a (in)valid name and/or (in)valid date; the certchain is not relevant for a certain alias, since it's the same for all aliases.
TrustCert.Status() - Constructor for class nl.nikhef.slcshttps.trust.TrustCert.Status
 
trustCertsTable - Static variable in class nl.nikhef.slcshttps.trust.TrustManagerImpl
global table of known alias - certificate pairs, where alias is hostname:port.
TrustManagerImpl - Class in nl.nikhef.slcshttps.trust
This class implements a X509TrustManager which asks the user for confirmation when something is wrong and in this process also checks whether the hostname is valid for the certificate chain.
TrustManagerImpl() - Constructor for class nl.nikhef.slcshttps.trust.TrustManagerImpl
Constructs a TrustManagerImpl.
TrustManagerImpl(String) - Constructor for class nl.nikhef.slcshttps.trust.TrustManagerImpl
Constructs a TrustManagerImpl and sets the global hostName.
TrustManagerImpl(String, int) - Constructor for class nl.nikhef.slcshttps.trust.TrustManagerImpl
Constructs a TrustManagerImpl and sets the global hostName and portNumber.
TrustManagerImpl.StdioComm - Class in nl.nikhef.slcshttps.trust
This Implementation uses only stdio/stderr for I/O.
TrustManagerImpl.StdioComm() - Constructor for class nl.nikhef.slcshttps.trust.TrustManagerImpl.StdioComm
 
TrustManagerImpl.TrustCommunicator - Interface in nl.nikhef.slcshttps.trust
Interface for TrustManagerImpl communication with the user.
trustManagers - Variable in class nl.nikhef.slcshttps.crypto.CryptoSSL
Contains the TrustManagers which provide authentication of server side.
TrustPopupComm - Class in nl.nikhef.slcshttps.gui
Implementation of TrustManagerImpl.TrustCommunicator using popup windows.
TrustPopupComm() - Constructor for class nl.nikhef.slcshttps.gui.TrustPopupComm
 
trustStore - Static variable in class nl.nikhef.slcshttps.trust.CertChainChecker
KeyStore with trusted certificates, initialized at class initialization using CertChainChecker.getCacertsKeyStore().
TYPE_LDAP - Static variable in class nl.nikhef.slcshttps.trust.HostnameChecker
Constant for a HostnameChecker for LDAP.
TYPE_TLS - Static variable in class nl.nikhef.slcshttps.trust.HostnameChecker
Constant for a HostnameChecker for TLS.

U

updateCert(String, TrustCert) - Method in class nl.nikhef.slcshttps.trust.TrustManagerImpl
Updates the status for a known certificate.
url - Variable in class nl.nikhef.slcshttps.trust.HttxURLConnection
URL of the connection.
useHttps - Static variable in class nl.nikhef.slcshttps.CAHttps
Is true when property "nl.nikhef.slcshttps.https" does NOT equal httx.
useHttx - Static variable in class nl.nikhef.slcshttps.CAHttps
Is true when property "nl.nikhef.slcshttps.https" does NOT equal https.
usingProxy() - Method in class nl.nikhef.slcshttps.trust.HttxURLConnection
 

V

validate(X509Certificate[]) - Static method in class nl.nikhef.slcshttps.trust.CertChainChecker
Validates a X509Certificate chain.
validate(X509Certificate[], Date) - Static method in class nl.nikhef.slcshttps.trust.CertChainChecker
Validates a X509Certificate chain for given date.

X

x509Cert - Variable in class nl.nikhef.slcshttps.trust.TrustCert
Holds the actual X509Certificate, either set using constructor TrustCert.TrustCert(X509Certificate[]) or using TrustCert.setCertChain(X509Certificate[]).
x509Chain - Variable in class nl.nikhef.slcshttps.trust.TrustCert
The certificate chain for the X509Certificate, either set using constructor TrustCert.TrustCert(X509Certificate[]) or using TrustCert.setCertChain(X509Certificate[]).

A B C D E F G H I K L M N O P R S T U V X

nl.nikhef.slcshttps Mischa Sallé - msalle(AT)nikhef.nl