public boolean containsEncryptedPrivateKey() throws IOException {
        final String methodName = "containsEncryptedPrivateKey";
        logger.entry(this, methodName);
        
        final String fileData = getPemFileData();
        final Matcher m = ENCRYPTED_KEY_PATTERN.matcher(fileData);
        final boolean result = m.find();
        
        logger.exit(this, methodName, result);
        
        return result;
    }
public boolean containsEncryptedPrivateKey ( ) throws IOException { final String methodName = "containsEncryptedPrivateKey" ; logger . entry ( this , methodName ) ; final String fileData = getPemFileData ( ) ; final Matcher m = ENCRYPTED_KEY_PATTERN . matcher ( fileData ) ; final boolean result = m . find ( ) ; logger . exit ( this , methodName , result ) ; return result ; }
@return {@code true} If the PEM file contains an encrypted private key, {@code false} otherwise.
@throws IOException If the PEM file cannot be read for any reason.