public class CertificateLoaderImpl extends Object implements CertificateLoader
| Constructor and Description |
|---|
CertificateLoaderImpl() |
| Modifier and Type | Method and Description |
|---|---|
KeyStore |
getKeyStore()
Returns the KeyStore used by
CertificateLoader. |
X509Certificate |
load(File file)
Obtains the certificate from a file, defined by ICP-BRASIL with the name A1.
|
X509Certificate |
loadFromToken()
Obtain the certificate from a Token or Smartcard,
defined by ICP-BRASIL with the name A3.
|
X509Certificate |
loadFromToken(String pinNumber)
When a PIN(Personal Identification Number) was informed,
obtain the certificate from a Token or Smartcard, defined
by ICP-BRASIL with the name A3.
|
X509Certificate |
loadFromToken(String pinNumber,
String alias)
When a PIN (Personal Identification Number) and alias was informed,
obtain the certificate from a Token or Smartcard,
defined by ICP-BRASIL with the name A3.
|
void |
setKeyStore(KeyStore keyStore)
Associate a previously existing keystore
|
public KeyStore getKeyStore()
CertificateLoader.getKeyStore in interface CertificateLoaderpublic void setKeyStore(KeyStore keyStore)
setKeyStore in interface CertificateLoaderkeyStore - java.security.keystorepublic X509Certificate load(File file)
load in interface CertificateLoaderfile - The file that contains the certificatepublic X509Certificate loadFromToken()
loadFromToken in interface CertificateLoaderpublic X509Certificate loadFromToken(String pinNumber)
loadFromToken in interface CertificateLoaderpinNumber - personal id number.public X509Certificate loadFromToken(String pinNumber, String alias)
loadFromToken in interface CertificateLoaderpinNumber - a PIN (Personal Identification Number).alias - desired alias.Copyright © 2025 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.