@Override
    protected byte[] engineGetEncoded(String format) throws IOException {
        if ((format == null) || format.equals("ASN.1") || format.equals("X.509")) {
            return engineGetEncoded();
        }
        throw new IOException("Unsupported format: " + format);
    }
AlgorithmParameters implementation for PSS.  The only supported encoding format is ASN.1
(with X.509 accepted as an alias), as specified in RFC 4055 section 3.1.
common/src/main/java/org/conscrypt/PSSParameters.java