Code example for KeyStoreException

0
        return new Date(0);
    } 
 
    public void engineSetKeyEntry(String alias, Key key, char[] password,
            Certificate[] chain) throws KeyStoreException {
        throw new KeyStoreException(
                "engineSetKeyEntry is not supported in myKeyStoreSpi"); 
    } 
 
    public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain)
            throws KeyStoreException { 
        throw new KeyStoreException(
                "engineSetKeyEntry is not supported in myKeyStoreSpi"); 
    } 
 
    public void engineSetCertificateEntry(String alias, Certificate cert)
            throws KeyStoreException { 
        throw new KeyStoreException(
                "engineSetCertificateEntry is not supported in myKeyStoreSpi"); 
    }