}
return signature;
}
catch (NoSuchAlgorithmException e)
{
throw new JoseException("Unable to get an implementation of algorithm name: " + getJavaAlgorithm(), e);
}
catch (InvalidAlgorithmParameterException e)
{
throw new JoseException("Invalid algorithm parameter ("+algorithmParameterSpec+") for: " + getJavaAlgorithm(), e);
}
}