public class DnieKeyStore
extends java.security.KeyStore
java.security.KeyStore.Builder, java.security.KeyStore.CallbackHandlerProtection, java.security.KeyStore.Entry, java.security.KeyStore.LoadStoreParameter, java.security.KeyStore.PasswordProtection, java.security.KeyStore.PrivateKeyEntry, java.security.KeyStore.ProtectionParameter, java.security.KeyStore.SecretKeyEntry, java.security.KeyStore.TrustedCertificateEntry| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUTH_CERT_ALIAS |
static java.lang.String |
SIGN_CERT_ALIAS |
| Constructor and Description |
|---|
DnieKeyStore(java.security.KeyStoreSpi keyStoreSpi,
java.security.Provider provider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(java.lang.String alias) |
DG1_Dnie |
getDatagroup1()
Read DG1 data type.
|
DG11 |
getDatagroup11()
Read DG11 data type.
|
DG13 |
getDatagroup13()
Read DG13 data type.
|
DG2 |
getDatagroup2()
Read DG2 data type.
|
DG7 |
getDatagroup7()
Read DG7 data type.
|
byte[] |
getDataObject(java.lang.String label) |
EF_COM |
getEFCOM()
Read EF.COM data type.
|
boolean |
verifyAge(java.util.Date birthDate)
Verify if the age date read from DNIe is later than the one passed.
|
boolean |
verifyAge(java.lang.String birthDate)
Verify if the age date read from DNIe is later than the one passed.
|
aliases, containsAlias, deleteEntry, entryInstanceOf, getCertificate, getCertificateAlias, getCertificateChain, getCreationDate, getDefaultType, getEntry, getInstance, getInstance, getInstance, getKey, getProvider, getType, isCertificateEntry, isKeyEntry, load, load, setCertificateEntry, setEntry, setKeyEntry, setKeyEntry, size, store, storepublic static final java.lang.String AUTH_CERT_ALIAS
public static final java.lang.String SIGN_CERT_ALIAS
public DnieKeyStore(java.security.KeyStoreSpi keyStoreSpi,
java.security.Provider provider)
public boolean containsLabels(java.lang.String alias)
public DG1_Dnie getDatagroup1()
public DG11 getDatagroup11()
public DG13 getDatagroup13()
public DG2 getDatagroup2()
public DG7 getDatagroup7()
public byte[] getDataObject(java.lang.String label)
public EF_COM getEFCOM()
public boolean verifyAge(java.util.Date birthDate)
throws java.security.KeyStoreException
birthDate - date to compare.java.security.KeyStoreExceptionpublic boolean verifyAge(java.lang.String birthDate)
throws java.security.KeyStoreException
birthDate - date to compare in string format 'dd/MM/yyyy'.java.security.KeyStoreException