org.idoox.security.pstore
Interface KeyEntry


public interface KeyEntry

This interface represents encrypted key entry returned by the KeyStore#getKeyEntry method. It represents encrypted private key with its certificate chain and metadata related to encrypted form of private key. The KeyEntry class can carry only certificates, such key entries are intended for trusted certificate entries.

Since:
3.0
Component:
Security-Core

Method Summary
 byte[] getAlgorithm()
          Gets encryption/decryption algorithm.
 java.security.cert.Certificate[] getCertificateChain()
          Gets certificate chain of this key entry.
 byte[] getEncodedKey()
          Gets encoded/encrypted key material.
 byte[] getFormat()
          Gets encrypted encoding format.
 byte[] getSalt()
          Gets aditional information allowing to choose the right encryption/decryption key bettwen the set of possible keys.
 

Method Detail

getEncodedKey

public byte[] getEncodedKey()
Gets encoded/encrypted key material.

Returns:
encoded/encrypted key material

getFormat

public byte[] getFormat()
Gets encrypted encoding format.

Returns:
encrypted encoding format name of the key material (after the encrypted key material is decrypted)

getAlgorithm

public byte[] getAlgorithm()
Gets encryption/decryption algorithm.

Returns:
encrypted key algorithm

getSalt

public byte[] getSalt()
Gets aditional information allowing to choose the right encryption/decryption key bettwen the set of possible keys.

Returns:
salt used for the key entry encryption/decryption

getCertificateChain

public java.security.cert.Certificate[] getCertificateChain()
Gets certificate chain of this key entry.

Returns:
certificate chain associated with the key or trusted certificate chain if this instance is obtained for trusted certificate entry.