public class CardSecurityFile extends Object implements Serializable
Constructor and Description |
---|
CardSecurityFile(InputStream inputStream)
Constructs a new file from the data in an input stream.
|
CardSecurityFile(String digestAlgorithm,
String digestEncryptionAlgorithm,
Collection<SecurityInfo> securityInfos,
byte[] encryptedDigest,
X509Certificate certificate)
Constructs a new file from the provided data.
|
CardSecurityFile(String digestAlgorithm,
String digestEncryptionAlgorithm,
Collection<SecurityInfo> securityInfos,
PrivateKey privateKey,
X509Certificate certificate)
Constructs a new file from the provided data.
|
CardSecurityFile(String digestAlgorithm,
String digestEncryptionAlgorithm,
Collection<SecurityInfo> securityInfos,
PrivateKey privateKey,
X509Certificate certificate,
String provider)
Constructs a new file from the provided data.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object otherObj)
Tests equality with respect to another object.
|
Collection<ChipAuthenticationInfo> |
getChipAuthenticationInfos()
Gets the CA public key infos embedded in this card access file.
|
Collection<ChipAuthenticationPublicKeyInfo> |
getChipAuthenticationPublicKeyInfos()
Gets the CA public key infos embedded in this card access file.
|
String |
getDigestAlgorithm() |
String |
getDigestEncryptionAlgorithm() |
byte[] |
getEncoded()
Gets the DER encoded file.
|
byte[] |
getEncryptedDigest() |
Collection<PACEInfo> |
getPACEInfos()
Gets the PACE infos embedded in this card access file.
|
Collection<SecurityInfo> |
getSecurityInfos()
Gets the security infos as an unordered collection.
|
int |
hashCode()
Gets a hash code of this object.
|
protected void |
readContent(InputStream inputStream) |
String |
toString()
Gets the signature algorithm object identifier.
|
protected void |
writeContent(OutputStream outputStream) |
public CardSecurityFile(String digestAlgorithm, String digestEncryptionAlgorithm, Collection<SecurityInfo> securityInfos, PrivateKey privateKey, X509Certificate certificate)
digestAlgorithm
- the digest algorithm as Java mnemonicdigestEncryptionAlgorithm
- the signature algorithm as Java mnemonicsecurityInfos
- a non-empty list of security infosprivateKey
- the private signing keycertificate
- the certificate to embed, which should correspond to the given private keypublic CardSecurityFile(String digestAlgorithm, String digestEncryptionAlgorithm, Collection<SecurityInfo> securityInfos, PrivateKey privateKey, X509Certificate certificate, String provider)
digestAlgorithm
- the digest algorithm as Java mnemonicdigestEncryptionAlgorithm
- the signature algorithm as Java mnemonicsecurityInfos
- a non-empty list of security infosprivateKey
- the private signing keycertificate
- the certificate to embed, which should correspond to the given private keyprovider
- the security provider to usepublic CardSecurityFile(String digestAlgorithm, String digestEncryptionAlgorithm, Collection<SecurityInfo> securityInfos, byte[] encryptedDigest, X509Certificate certificate)
digestAlgorithm
- the digest algorithm as Java mnemonicdigestEncryptionAlgorithm
- the signature algorithm as Java mnemonicsecurityInfos
- a non-empty list of security infosencryptedDigest
- the signaturecertificate
- the certificate to embedpublic CardSecurityFile(InputStream inputStream) throws IOException
inputStream
- the input stream to parse the data fromIOException
- on error reading input streampublic String getDigestAlgorithm()
public String getDigestEncryptionAlgorithm()
public byte[] getEncryptedDigest()
protected void readContent(InputStream inputStream) throws IOException
IOException
protected void writeContent(OutputStream outputStream) throws IOException
IOException
public byte[] getEncoded()
public Collection<SecurityInfo> getSecurityInfos()
public Collection<PACEInfo> getPACEInfos()
public Collection<ChipAuthenticationInfo> getChipAuthenticationInfos()
public Collection<ChipAuthenticationPublicKeyInfo> getChipAuthenticationPublicKeyInfos()
public String toString()
public boolean equals(Object otherObj)
Copyright © 2016. All rights reserved.