Java 类javax.xml.crypto.dsig.spec.DigestMethodParameterSpec 实例源码

项目:OpenJSharp    文件:DOMDigestMethod.java   
/**
 * Creates a <code>DOMDigestMethod</code>.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
DOMDigestMethod(AlgorithmParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null && !(params instanceof DigestMethodParameterSpec)) {
        throw new InvalidAlgorithmParameterException
            ("params must be of type DigestMethodParameterSpec");
    }
    checkParams((DigestMethodParameterSpec)params);
    this.params = (DigestMethodParameterSpec)params;
}
项目:jdk8u-jdk    文件:DOMDigestMethod.java   
/**
 * Creates a <code>DOMDigestMethod</code>.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
DOMDigestMethod(AlgorithmParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null && !(params instanceof DigestMethodParameterSpec)) {
        throw new InvalidAlgorithmParameterException
            ("params must be of type DigestMethodParameterSpec");
    }
    checkParams((DigestMethodParameterSpec)params);
    this.params = (DigestMethodParameterSpec)params;
}
项目:openjdk-jdk10    文件:DOMDigestMethod.java   
/**
 * Creates a <code>DOMDigestMethod</code>.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
DOMDigestMethod(AlgorithmParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null && !(params instanceof DigestMethodParameterSpec)) {
        throw new InvalidAlgorithmParameterException
            ("params must be of type DigestMethodParameterSpec");
    }
    checkParams((DigestMethodParameterSpec)params);
    this.params = (DigestMethodParameterSpec)params;
}
项目:openjdk9    文件:DOMDigestMethod.java   
/**
 * Creates a <code>DOMDigestMethod</code>.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
DOMDigestMethod(AlgorithmParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null && !(params instanceof DigestMethodParameterSpec)) {
        throw new InvalidAlgorithmParameterException
            ("params must be of type DigestMethodParameterSpec");
    }
    checkParams((DigestMethodParameterSpec)params);
    this.params = (DigestMethodParameterSpec)params;
}
项目:xmlsec-gost    文件:DOMDigestMethod.java   
/**
 * Creates a <code>DOMDigestMethod</code>.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
DOMDigestMethod(AlgorithmParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null && !(params instanceof DigestMethodParameterSpec)) {
        throw new InvalidAlgorithmParameterException
            ("params must be of type DigestMethodParameterSpec");
    }
    checkParams((DigestMethodParameterSpec)params);
    this.params = (DigestMethodParameterSpec)params;
}
项目:jdk8u_jdk    文件:DOMDigestMethod.java   
/**
 * Creates a <code>DOMDigestMethod</code>.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
DOMDigestMethod(AlgorithmParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null && !(params instanceof DigestMethodParameterSpec)) {
        throw new InvalidAlgorithmParameterException
            ("params must be of type DigestMethodParameterSpec");
    }
    checkParams((DigestMethodParameterSpec)params);
    this.params = (DigestMethodParameterSpec)params;
}
项目:lookaside_java-1.8.0-openjdk    文件:DOMDigestMethod.java   
/**
 * Creates a <code>DOMDigestMethod</code>.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
DOMDigestMethod(AlgorithmParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null && !(params instanceof DigestMethodParameterSpec)) {
        throw new InvalidAlgorithmParameterException
            ("params must be of type DigestMethodParameterSpec");
    }
    checkParams((DigestMethodParameterSpec)params);
    this.params = (DigestMethodParameterSpec)params;
}
项目:infobip-open-jdk-8    文件:DOMDigestMethod.java   
/**
 * Creates a <code>DOMDigestMethod</code>.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
DOMDigestMethod(AlgorithmParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null && !(params instanceof DigestMethodParameterSpec)) {
        throw new InvalidAlgorithmParameterException
            ("params must be of type DigestMethodParameterSpec");
    }
    checkParams((DigestMethodParameterSpec)params);
    this.params = (DigestMethodParameterSpec)params;
}
项目:jdk8u-dev-jdk    文件:DOMDigestMethod.java   
/**
 * Creates a <code>DOMDigestMethod</code>.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
DOMDigestMethod(AlgorithmParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null && !(params instanceof DigestMethodParameterSpec)) {
        throw new InvalidAlgorithmParameterException
            ("params must be of type DigestMethodParameterSpec");
    }
    checkParams((DigestMethodParameterSpec)params);
    this.params = (DigestMethodParameterSpec)params;
}
项目:jdk7-jdk    文件:DOMDigestMethod.java   
/**
 * Creates a <code>DOMDigestMethod</code>.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
DOMDigestMethod(AlgorithmParameterSpec params)
    throws InvalidAlgorithmParameterException {
    if (params != null && !(params instanceof DigestMethodParameterSpec)) {
        throw new InvalidAlgorithmParameterException
            ("params must be of type DigestMethodParameterSpec");
    }
    checkParams((DigestMethodParameterSpec) params);
    this.params = (DigestMethodParameterSpec) params;
}
项目:openjdk-source-code-learn    文件:DOMDigestMethod.java   
/**
 * Creates a <code>DOMDigestMethod</code>.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
DOMDigestMethod(AlgorithmParameterSpec params)
    throws InvalidAlgorithmParameterException {
    if (params != null && !(params instanceof DigestMethodParameterSpec)) {
        throw new InvalidAlgorithmParameterException
            ("params must be of type DigestMethodParameterSpec");
    }
    checkParams((DigestMethodParameterSpec) params);
    this.params = (DigestMethodParameterSpec) params;
}
项目:OLD-OpenJDK8    文件:DOMDigestMethod.java   
/**
 * Creates a <code>DOMDigestMethod</code>.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
DOMDigestMethod(AlgorithmParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null && !(params instanceof DigestMethodParameterSpec)) {
        throw new InvalidAlgorithmParameterException
            ("params must be of type DigestMethodParameterSpec");
    }
    checkParams((DigestMethodParameterSpec)params);
    this.params = (DigestMethodParameterSpec)params;
}
项目:openjdk-jdk7u-jdk    文件:DOMDigestMethod.java   
/**
 * Creates a <code>DOMDigestMethod</code>.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
DOMDigestMethod(AlgorithmParameterSpec params)
    throws InvalidAlgorithmParameterException {
    if (params != null && !(params instanceof DigestMethodParameterSpec)) {
        throw new InvalidAlgorithmParameterException
            ("params must be of type DigestMethodParameterSpec");
    }
    checkParams((DigestMethodParameterSpec) params);
    this.params = (DigestMethodParameterSpec) params;
}
项目:openjdk-icedtea7    文件:DOMDigestMethod.java   
/**
 * Creates a <code>DOMDigestMethod</code>.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
DOMDigestMethod(AlgorithmParameterSpec params)
    throws InvalidAlgorithmParameterException {
    if (params != null && !(params instanceof DigestMethodParameterSpec)) {
        throw new InvalidAlgorithmParameterException
            ("params must be of type DigestMethodParameterSpec");
    }
    checkParams((DigestMethodParameterSpec) params);
    this.params = (DigestMethodParameterSpec) params;
}
项目:oiosaml.java    文件:DOMXMLSignatureFactory.java   
public DigestMethod newDigestMethod(String algorithm,
        DigestMethodParameterSpec params) throws NoSuchAlgorithmException,
        InvalidAlgorithmParameterException {
    throw new UnsupportedOperationException();
}
项目:ph-xmldsig    文件:XMLDSigCreator.java   
@Nonnull
@OverrideOnDemand
protected DigestMethod createDigestMethod (@Nonnull final XMLSignatureFactory aSignatureFactory) throws Exception
{
  return aSignatureFactory.newDigestMethod (DigestMethod.SHA1, (DigestMethodParameterSpec) null);
}
项目:OpenJSharp    文件:DOMDigestMethod.java   
/**
 * Checks if the specified parameters are valid for this algorithm. By
 * default, this method throws an exception if parameters are specified
 * since most DigestMethod algorithms do not have parameters. Subclasses
 * should override it if they have parameters.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
void checkParams(DigestMethodParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null) {
        throw new InvalidAlgorithmParameterException("no parameters " +
            "should be specified for the " + getMessageDigestAlgorithm() +
            " DigestMethod algorithm");
    }
}
项目:OpenJSharp    文件:DOMDigestMethod.java   
/**
 * Unmarshals <code>DigestMethodParameterSpec</code> from the specified
 * <code>Element</code>.  By default, this method throws an exception since
 * most DigestMethod algorithms do not have parameters. Subclasses should
 * override it if they have parameters.
 *
 * @param paramsElem the <code>Element</code> holding the input params
 * @return the algorithm-specific <code>DigestMethodParameterSpec</code>
 * @throws MarshalException if the parameters cannot be unmarshalled
 */
DigestMethodParameterSpec unmarshalParams(Element paramsElem)
    throws MarshalException
{
    throw new MarshalException("no parameters should " +
                               "be specified for the " +
                               getMessageDigestAlgorithm() +
                               " DigestMethod algorithm");
}
项目:jdk8u-jdk    文件:DOMDigestMethod.java   
/**
 * Checks if the specified parameters are valid for this algorithm. By
 * default, this method throws an exception if parameters are specified
 * since most DigestMethod algorithms do not have parameters. Subclasses
 * should override it if they have parameters.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
void checkParams(DigestMethodParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null) {
        throw new InvalidAlgorithmParameterException("no parameters " +
            "should be specified for the " + getMessageDigestAlgorithm() +
            " DigestMethod algorithm");
    }
}
项目:jdk8u-jdk    文件:DOMDigestMethod.java   
/**
 * Unmarshals <code>DigestMethodParameterSpec</code> from the specified
 * <code>Element</code>.  By default, this method throws an exception since
 * most DigestMethod algorithms do not have parameters. Subclasses should
 * override it if they have parameters.
 *
 * @param paramsElem the <code>Element</code> holding the input params
 * @return the algorithm-specific <code>DigestMethodParameterSpec</code>
 * @throws MarshalException if the parameters cannot be unmarshalled
 */
DigestMethodParameterSpec unmarshalParams(Element paramsElem)
    throws MarshalException
{
    throw new MarshalException("no parameters should " +
                               "be specified for the " +
                               getMessageDigestAlgorithm() +
                               " DigestMethod algorithm");
}
项目:openjdk-jdk10    文件:DOMDigestMethod.java   
/**
 * Checks if the specified parameters are valid for this algorithm. By
 * default, this method throws an exception if parameters are specified
 * since most DigestMethod algorithms do not have parameters. Subclasses
 * should override it if they have parameters.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
void checkParams(DigestMethodParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null) {
        throw new InvalidAlgorithmParameterException("no parameters " +
            "should be specified for the " + getMessageDigestAlgorithm() +
            " DigestMethod algorithm");
    }
}
项目:openjdk-jdk10    文件:DOMDigestMethod.java   
/**
 * Unmarshals <code>DigestMethodParameterSpec</code> from the specified
 * <code>Element</code>.  By default, this method throws an exception since
 * most DigestMethod algorithms do not have parameters. Subclasses should
 * override it if they have parameters.
 *
 * @param paramsElem the <code>Element</code> holding the input params
 * @return the algorithm-specific <code>DigestMethodParameterSpec</code>
 * @throws MarshalException if the parameters cannot be unmarshalled
 */
DigestMethodParameterSpec unmarshalParams(Element paramsElem)
    throws MarshalException
{
    throw new MarshalException("no parameters should " +
                               "be specified for the " +
                               getMessageDigestAlgorithm() +
                               " DigestMethod algorithm");
}
项目:openjdk9    文件:DOMDigestMethod.java   
/**
 * Checks if the specified parameters are valid for this algorithm. By
 * default, this method throws an exception if parameters are specified
 * since most DigestMethod algorithms do not have parameters. Subclasses
 * should override it if they have parameters.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
void checkParams(DigestMethodParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null) {
        throw new InvalidAlgorithmParameterException("no parameters " +
            "should be specified for the " + getMessageDigestAlgorithm() +
            " DigestMethod algorithm");
    }
}
项目:openjdk9    文件:DOMDigestMethod.java   
/**
 * Unmarshals <code>DigestMethodParameterSpec</code> from the specified
 * <code>Element</code>.  By default, this method throws an exception since
 * most DigestMethod algorithms do not have parameters. Subclasses should
 * override it if they have parameters.
 *
 * @param paramsElem the <code>Element</code> holding the input params
 * @return the algorithm-specific <code>DigestMethodParameterSpec</code>
 * @throws MarshalException if the parameters cannot be unmarshalled
 */
DigestMethodParameterSpec unmarshalParams(Element paramsElem)
    throws MarshalException
{
    throw new MarshalException("no parameters should " +
                               "be specified for the " +
                               getMessageDigestAlgorithm() +
                               " DigestMethod algorithm");
}
项目:xmlsec-gost    文件:DOMDigestMethod.java   
/**
 * Checks if the specified parameters are valid for this algorithm. By
 * default, this method throws an exception if parameters are specified
 * since most DigestMethod algorithms do not have parameters. Subclasses
 * should override it if they have parameters.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
void checkParams(DigestMethodParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null) {
        throw new InvalidAlgorithmParameterException("no parameters " +
            "should be specified for the " + getMessageDigestAlgorithm() +
            " DigestMethod algorithm");
    }
}
项目:xmlsec-gost    文件:DOMDigestMethod.java   
/**
 * Unmarshals <code>DigestMethodParameterSpec</code> from the specified
 * <code>Element</code>.  By default, this method throws an exception since
 * most DigestMethod algorithms do not have parameters. Subclasses should
 * override it if they have parameters.
 *
 * @param paramsElem the <code>Element</code> holding the input params
 * @return the algorithm-specific <code>DigestMethodParameterSpec</code>
 * @throws MarshalException if the parameters cannot be unmarshalled
 */
DigestMethodParameterSpec unmarshalParams(Element paramsElem)
    throws MarshalException
{
    throw new MarshalException("no parameters should " +
                               "be specified for the " +
                               getMessageDigestAlgorithm() +
                               " DigestMethod algorithm");
}
项目:jdk8u_jdk    文件:DOMDigestMethod.java   
/**
 * Checks if the specified parameters are valid for this algorithm. By
 * default, this method throws an exception if parameters are specified
 * since most DigestMethod algorithms do not have parameters. Subclasses
 * should override it if they have parameters.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
void checkParams(DigestMethodParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null) {
        throw new InvalidAlgorithmParameterException("no parameters " +
            "should be specified for the " + getMessageDigestAlgorithm() +
            " DigestMethod algorithm");
    }
}
项目:jdk8u_jdk    文件:DOMDigestMethod.java   
/**
 * Unmarshals <code>DigestMethodParameterSpec</code> from the specified
 * <code>Element</code>.  By default, this method throws an exception since
 * most DigestMethod algorithms do not have parameters. Subclasses should
 * override it if they have parameters.
 *
 * @param paramsElem the <code>Element</code> holding the input params
 * @return the algorithm-specific <code>DigestMethodParameterSpec</code>
 * @throws MarshalException if the parameters cannot be unmarshalled
 */
DigestMethodParameterSpec unmarshalParams(Element paramsElem)
    throws MarshalException
{
    throw new MarshalException("no parameters should " +
                               "be specified for the " +
                               getMessageDigestAlgorithm() +
                               " DigestMethod algorithm");
}
项目:lookaside_java-1.8.0-openjdk    文件:DOMDigestMethod.java   
/**
 * Checks if the specified parameters are valid for this algorithm. By
 * default, this method throws an exception if parameters are specified
 * since most DigestMethod algorithms do not have parameters. Subclasses
 * should override it if they have parameters.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
void checkParams(DigestMethodParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null) {
        throw new InvalidAlgorithmParameterException("no parameters " +
            "should be specified for the " + getMessageDigestAlgorithm() +
            " DigestMethod algorithm");
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:DOMDigestMethod.java   
/**
 * Unmarshals <code>DigestMethodParameterSpec</code> from the specified
 * <code>Element</code>.  By default, this method throws an exception since
 * most DigestMethod algorithms do not have parameters. Subclasses should
 * override it if they have parameters.
 *
 * @param paramsElem the <code>Element</code> holding the input params
 * @return the algorithm-specific <code>DigestMethodParameterSpec</code>
 * @throws MarshalException if the parameters cannot be unmarshalled
 */
DigestMethodParameterSpec unmarshalParams(Element paramsElem)
    throws MarshalException
{
    throw new MarshalException("no parameters should " +
                               "be specified for the " +
                               getMessageDigestAlgorithm() +
                               " DigestMethod algorithm");
}
项目:infobip-open-jdk-8    文件:DOMDigestMethod.java   
/**
 * Checks if the specified parameters are valid for this algorithm. By
 * default, this method throws an exception if parameters are specified
 * since most DigestMethod algorithms do not have parameters. Subclasses
 * should override it if they have parameters.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
void checkParams(DigestMethodParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null) {
        throw new InvalidAlgorithmParameterException("no parameters " +
            "should be specified for the " + getMessageDigestAlgorithm() +
            " DigestMethod algorithm");
    }
}
项目:infobip-open-jdk-8    文件:DOMDigestMethod.java   
/**
 * Unmarshals <code>DigestMethodParameterSpec</code> from the specified
 * <code>Element</code>.  By default, this method throws an exception since
 * most DigestMethod algorithms do not have parameters. Subclasses should
 * override it if they have parameters.
 *
 * @param paramsElem the <code>Element</code> holding the input params
 * @return the algorithm-specific <code>DigestMethodParameterSpec</code>
 * @throws MarshalException if the parameters cannot be unmarshalled
 */
DigestMethodParameterSpec unmarshalParams(Element paramsElem)
    throws MarshalException
{
    throw new MarshalException("no parameters should " +
                               "be specified for the " +
                               getMessageDigestAlgorithm() +
                               " DigestMethod algorithm");
}
项目:jdk8u-dev-jdk    文件:DOMDigestMethod.java   
/**
 * Checks if the specified parameters are valid for this algorithm. By
 * default, this method throws an exception if parameters are specified
 * since most DigestMethod algorithms do not have parameters. Subclasses
 * should override it if they have parameters.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
void checkParams(DigestMethodParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null) {
        throw new InvalidAlgorithmParameterException("no parameters " +
            "should be specified for the " + getMessageDigestAlgorithm() +
            " DigestMethod algorithm");
    }
}
项目:jdk8u-dev-jdk    文件:DOMDigestMethod.java   
/**
 * Unmarshals <code>DigestMethodParameterSpec</code> from the specified
 * <code>Element</code>.  By default, this method throws an exception since
 * most DigestMethod algorithms do not have parameters. Subclasses should
 * override it if they have parameters.
 *
 * @param paramsElem the <code>Element</code> holding the input params
 * @return the algorithm-specific <code>DigestMethodParameterSpec</code>
 * @throws MarshalException if the parameters cannot be unmarshalled
 */
DigestMethodParameterSpec unmarshalParams(Element paramsElem)
    throws MarshalException
{
    throw new MarshalException("no parameters should " +
                               "be specified for the " +
                               getMessageDigestAlgorithm() +
                               " DigestMethod algorithm");
}
项目:jdk7-jdk    文件:DOMDigestMethod.java   
/**
 * Checks if the specified parameters are valid for this algorithm. By
 * default, this method throws an exception if parameters are specified
 * since most DigestMethod algorithms do not have parameters. Subclasses
 * should override it if they have parameters.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
void checkParams(DigestMethodParameterSpec params)
    throws InvalidAlgorithmParameterException {
    if (params != null) {
        throw new InvalidAlgorithmParameterException("no parameters " +
            "should be specified for the " + getMessageDigestAlgorithm()
             + " DigestMethod algorithm");
    }
}
项目:jdk7-jdk    文件:DOMDigestMethod.java   
/**
 * Unmarshals <code>DigestMethodParameterSpec</code> from the specified
 * <code>Element</code>.  By default, this method throws an exception since
 * most DigestMethod algorithms do not have parameters. Subclasses should
 * override it if they have parameters.
 *
 * @param paramsElem the <code>Element</code> holding the input params
 * @return the algorithm-specific <code>DigestMethodParameterSpec</code>
 * @throws MarshalException if the parameters cannot be unmarshalled
 */
DigestMethodParameterSpec
    unmarshalParams(Element paramsElem) throws MarshalException {
    throw new MarshalException("no parameters should " +
        "be specified for the " + getMessageDigestAlgorithm() +
        " DigestMethod algorithm");
}
项目:openjdk-source-code-learn    文件:DOMDigestMethod.java   
/**
 * Checks if the specified parameters are valid for this algorithm. By
 * default, this method throws an exception if parameters are specified
 * since most DigestMethod algorithms do not have parameters. Subclasses
 * should override it if they have parameters.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
void checkParams(DigestMethodParameterSpec params)
    throws InvalidAlgorithmParameterException {
    if (params != null) {
        throw new InvalidAlgorithmParameterException("no parameters " +
            "should be specified for the " + getMessageDigestAlgorithm()
             + " DigestMethod algorithm");
    }
}
项目:openjdk-source-code-learn    文件:DOMDigestMethod.java   
/**
 * Unmarshals <code>DigestMethodParameterSpec</code> from the specified
 * <code>Element</code>.  By default, this method throws an exception since
 * most DigestMethod algorithms do not have parameters. Subclasses should
 * override it if they have parameters.
 *
 * @param paramsElem the <code>Element</code> holding the input params
 * @return the algorithm-specific <code>DigestMethodParameterSpec</code>
 * @throws MarshalException if the parameters cannot be unmarshalled
 */
DigestMethodParameterSpec
    unmarshalParams(Element paramsElem) throws MarshalException {
    throw new MarshalException("no parameters should " +
        "be specified for the " + getMessageDigestAlgorithm() +
        " DigestMethod algorithm");
}
项目:OLD-OpenJDK8    文件:DOMDigestMethod.java   
/**
 * Checks if the specified parameters are valid for this algorithm. By
 * default, this method throws an exception if parameters are specified
 * since most DigestMethod algorithms do not have parameters. Subclasses
 * should override it if they have parameters.
 *
 * @param params the algorithm-specific params (may be <code>null</code>)
 * @throws InvalidAlgorithmParameterException if the parameters are not
 *    appropriate for this digest method
 */
void checkParams(DigestMethodParameterSpec params)
    throws InvalidAlgorithmParameterException
{
    if (params != null) {
        throw new InvalidAlgorithmParameterException("no parameters " +
            "should be specified for the " + getMessageDigestAlgorithm() +
            " DigestMethod algorithm");
    }
}
项目:OLD-OpenJDK8    文件:DOMDigestMethod.java   
/**
 * Unmarshals <code>DigestMethodParameterSpec</code> from the specified
 * <code>Element</code>.  By default, this method throws an exception since
 * most DigestMethod algorithms do not have parameters. Subclasses should
 * override it if they have parameters.
 *
 * @param paramsElem the <code>Element</code> holding the input params
 * @return the algorithm-specific <code>DigestMethodParameterSpec</code>
 * @throws MarshalException if the parameters cannot be unmarshalled
 */
DigestMethodParameterSpec unmarshalParams(Element paramsElem)
    throws MarshalException
{
    throw new MarshalException("no parameters should " +
                               "be specified for the " +
                               getMessageDigestAlgorithm() +
                               " DigestMethod algorithm");
}