io.sureshg.extn / java.io.File

Extensions for java.io.File

loadCRLs

fun File.loadCRLs(): List<CRL>

Loads CRLs from a File source

readPemPrivateKey

fun File.readPemPrivateKey(keyPasswd: CharArray? = null): List<PrivateKey>

Read the PrivateKey pem file.

toKeyStore

fun File.toKeyStore(type: String = KeyStore.getDefaultType(), storePasswd: CharArray? = null): KeyStore?

Returns a KeyStore instance by loading this keystore file.

toP12KeyStore

fun File.toP12KeyStore(storePasswd: CharArray? = null): KeyStore?

Returns a PKCS12 KeyStore instance by loading this keystore file.