gpt4 book ai didi

org.apache.xml.security.signature.XMLSignatureException类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 13:24:40 27 4
gpt4 key购买 nike

本文整理了Java中org.apache.xml.security.signature.XMLSignatureException类的一些代码示例,展示了XMLSignatureException类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLSignatureException类的具体详情如下:
包路径:org.apache.xml.security.signature.XMLSignatureException
类名称:XMLSignatureException

XMLSignatureException介绍

[英]All XML Signature related exceptions inherit herefrom.
[中]所有与XML签名相关的异常都继承自此。

代码示例

代码示例来源:origin: org.apache.santuario/xmlsec

/**
 * Method engineInitSign
 *
 * @param signingKey
 * @param algorithmParameterSpec
 * @throws XMLSignatureException
 */
protected void engineInitSign(
  Key signingKey, AlgorithmParameterSpec algorithmParameterSpec
) throws XMLSignatureException {
  throw new XMLSignatureException("algorithms.CannotUseAlgorithmParameterSpecOnDSA");
}

代码示例来源:origin: net.shibboleth.metadata/aggregator-pipeline

e.getMessage());

代码示例来源:origin: arhs/sd-dss

signatureCryptographicVerification.setErrorMessage(e.getMessage());

代码示例来源:origin: org.apache.santuario/xmlsec

/**
 * Method engineSetHMACOutputLength
 *
 * @param HMACOutputLength
 * @throws XMLSignatureException
 */
protected void engineSetHMACOutputLength(int HMACOutputLength) throws XMLSignatureException {
  throw new XMLSignatureException("algorithms.HMACOutputLengthOnlyForHMAC");
}

代码示例来源:origin: luisgoncalves/xades4j

throw new XAdES4jXMLSigException(ex.getMessage(), ex);

代码示例来源:origin: org.apache.santuario/xmlsec

/**
 * Method engineInitSign
 *
 * @param secretKey
 * @param secureRandom
 * @throws XMLSignatureException
 */
protected void engineInitSign(Key secretKey, SecureRandom secureRandom)
  throws XMLSignatureException {
  throw new XMLSignatureException("algorithms.CannotUseSecureRandomOnMAC");
}

代码示例来源:origin: org.apache.santuario/xmlsec

/** {@inheritDoc} */
protected void engineSetHMACOutputLength(int HMACOutputLength)
  throws XMLSignatureException {
  throw new XMLSignatureException("algorithms.HMACOutputLengthOnlyForHMAC");
}

代码示例来源:origin: org.apache.santuario/xmlsec

/** {@inheritDoc} */
protected void engineInitSign(
  Key signingKey, AlgorithmParameterSpec algorithmParameterSpec
) throws XMLSignatureException {
  throw new XMLSignatureException("algorithms.CannotUseAlgorithmParameterSpecOnRSA");
}

代码示例来源:origin: org.apache.santuario/xmlsec

/**
 * Proxy method for {@link java.security.Signature#setParameter(
 * java.security.spec.AlgorithmParameterSpec)}
 * which is executed on the internal {@link java.security.Signature} object.
 *
 * @param params
 * @throws XMLSignatureException
 */
protected void engineSetParameter(AlgorithmParameterSpec params) throws XMLSignatureException {
  throw new XMLSignatureException("empty", new Object[]{"Incorrect method call"});
}

代码示例来源:origin: org.apache.santuario/xmlsec

/** {@inheritDoc} */
protected void engineSetHMACOutputLength(int HMACOutputLength)
  throws XMLSignatureException {
  throw new XMLSignatureException("algorithms.HMACOutputLengthOnlyForHMAC");
}

代码示例来源:origin: org.apache.santuario/xmlsec

/** {@inheritDoc} */
protected void engineInitSign(
  Key signingKey, AlgorithmParameterSpec algorithmParameterSpec
) throws XMLSignatureException {
  throw new XMLSignatureException("algorithms.CannotUseAlgorithmParameterSpecOnRSA");
}

代码示例来源:origin: org.apache.santuario/xmlsec

/** {@inheritDoc} */
protected void engineUpdate(byte buf[], int offset, int len) throws XMLSignatureException {
  try {
    this.signatureAlgorithm.update(buf, offset, len);
  } catch (SignatureException ex) {
    throw new XMLSignatureException(ex);
  }
}

代码示例来源:origin: org.apache.santuario/xmlsec

/** {@inheritDoc} */
protected void engineUpdate(byte input) throws XMLSignatureException {
  try {
    this.signatureAlgorithm.update(input);
  } catch (SignatureException ex) {
    throw new XMLSignatureException(ex);
  }
}

代码示例来源:origin: org.apache.santuario/xmlsec

/**
 * {@inheritDoc}
 */
protected void engineUpdate(byte[] input) throws XMLSignatureException {
  try {
    this.signatureAlgorithm.update(input);
  } catch (SignatureException ex) {
    throw new XMLSignatureException(ex);
  }
}

代码示例来源:origin: org.apache.santuario/xmlsec

/**
 * {@inheritDoc}
 */
protected void engineUpdate(byte buf[], int offset, int len) throws XMLSignatureException {
  try {
    this.signatureAlgorithm.update(buf, offset, len);
  } catch (SignatureException ex) {
    throw new XMLSignatureException(ex);
  }
}

代码示例来源:origin: org.apache.santuario/xmlsec

/** {@inheritDoc} */
protected byte[] engineSign() throws XMLSignatureException {
  try {
    return this.signatureAlgorithm.sign();
  } catch (SignatureException ex) {
    throw new XMLSignatureException(ex);
  }
}

代码示例来源:origin: org.apache.santuario/xmlsec

/** {@inheritDoc} */
protected void engineUpdate(byte buf[], int offset, int len) throws XMLSignatureException {
  try {
    this.signatureAlgorithm.update(buf, offset, len);
  } catch (SignatureException ex) {
    throw new XMLSignatureException(ex);
  }
}

代码示例来源:origin: org.apache.santuario/xmlsec

/** {@inheritDoc} */
protected void engineUpdate(byte[] input) throws XMLSignatureException {
  try {
    this.signatureAlgorithm.update(input);
  } catch (SignatureException ex) {
    throw new XMLSignatureException(ex);
  }
}

代码示例来源:origin: org.apache.santuario/xmlsec

/** {@inheritDoc} */
protected void engineUpdate(byte[] input) throws XMLSignatureException {
  try {
    this.signatureAlgorithm.update(input);
  } catch (SignatureException ex) {
    throw new XMLSignatureException(ex);
  }
}

代码示例来源:origin: org.apache.santuario/xmlsec

/** {@inheritDoc} */
protected void engineUpdate(byte input) throws XMLSignatureException {
  try {
    this.signatureAlgorithm.update(input);
  } catch (SignatureException ex) {
    throw new XMLSignatureException(ex);
  }
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com