byte[] params)
throws IOException
{
try
{
RSASSAPSSparams pssP = RSASSAPSSparams.getInstance(params);
currentSpec = new PSSParameterSpec(
pssP.getHashAlgorithm().getAlgorithm().getId(),
pssP.getMaskGenAlgorithm().getAlgorithm().getId(),
new MGF1ParameterSpec(AlgorithmIdentifier.getInstance(pssP.getMaskGenAlgorithm().getParameters()).getAlgorithm().getId()),
pssP.getSaltLength().intValue(),
pssP.getTrailerField().intValue());
}
catch (ClassCastException e)
{
throw new IOException("Not a valid PSS Parameter encoding.");
}