cz.utb.fai.simkovicp.pki.x509.device
Class PKCS12Device

java.lang.Object
  extended by cz.utb.fai.simkovicp.pki.x509.device.PKCS12Device
All Implemented Interfaces:
java.io.Serializable

public class PKCS12Device
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
protected PKCS12Device(java.lang.String propertyName, java.lang.String index)
           
 
Method Summary
 java.lang.String getAlias()
          Alias
 java.lang.String getAliasPassword()
           
 java.security.cert.Certificate[] getChains()
          Certificates chain
 java.lang.String getName()
          Name
 java.lang.String getPassword()
           
 java.lang.String getPath()
           
 java.security.PrivateKey getPrivateKey()
          PrivateKey
 java.security.cert.X509Certificate getPublicKey()
          Public key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKCS12Device

protected PKCS12Device(java.lang.String propertyName,
                       java.lang.String index)
                throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getPrivateKey

public java.security.PrivateKey getPrivateKey()
PrivateKey

Returns:
the privateKey

getPublicKey

public java.security.cert.X509Certificate getPublicKey()
Public key

Returns:
the publicKey

getName

public java.lang.String getName()
Name

Returns:
the name

getAlias

public java.lang.String getAlias()
Alias

Returns:
the index

getChains

public java.security.cert.Certificate[] getChains()
Certificates chain

Returns:
the chains
See Also:
java.​security.​KeyStore#getCertificateChain

getAliasPassword

public java.lang.String getAliasPassword()

getPassword

public java.lang.String getPassword()

getPath

public java.lang.String getPath()