Package br.ufsc.labsec.signature.tsa
Class TimeStampUtilities
java.lang.Object
br.ufsc.labsec.signature.tsa.TimeStampUtilities
public class TimeStampUtilities extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimeStampUtilities.Constants
-
Constructor Summary
Constructors Constructor Description TimeStampUtilities()
-
Method Summary
Modifier and Type Method Description static BigInteger
getCertificateSerialNumber(X509Certificate certificate)
static URLConnection
getUrlConnection(URL url, String[] certificatesUrls)
Gera a conexão para a url dadastatic KeyStore
keyStore(URL url, char[] password, String[] sslCertificatesUrls)
Carrega as informações de chave da TSA de acordo com aquelas que foram configuradas.
-
Constructor Details
-
TimeStampUtilities
public TimeStampUtilities()
-
-
Method Details
-
getCertificateSerialNumber
- Throws:
Exception
-
getUrlConnection
public static URLConnection getUrlConnection(URL url, String[] certificatesUrls) throws IOException, NoSuchAlgorithmException, KeyStoreException, KeyManagementExceptionGera a conexão para a url dada- Parameters:
url
- A URL para qual a conexão será feitacertificatesUrls
- Array com os endereços dos certificados do SSL necessários- Returns:
- A conexão gerada
- Throws:
IOException
NoSuchAlgorithmException
KeyStoreException
KeyManagementException
-
keyStore
Carrega as informações de chave da TSA de acordo com aquelas que foram configuradas.
-