gpt4 book ai didi

org.apache.wss4j.dom.saml.WSSSAMLKeyInfoProcessor类的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 20:25:05 25 4
gpt4 key购买 nike

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

WSSSAMLKeyInfoProcessor介绍

[英]This interface allows the user to plug in custom ways of processing a SAML KeyInfo.
[中]该界面允许用户插入处理SAML KeyInfo的自定义方式。

代码示例

代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom

public Credential handleSAMLToken(
  SamlAssertionWrapper samlAssertion,
  RequestData data,
  Validator validator
) throws WSSecurityException {
  // Parse the subject if it exists
  samlAssertion.parseSubject(
    new WSSSAMLKeyInfoProcessor(data), data.getSigVerCrypto(),
    data.getCallbackHandler()
  );
  // Now delegate the rest of the verification to the Validator
  Credential credential = new Credential();
  credential.setSamlAssertion(samlAssertion);
  if (validator != null) {
    return validator.validate(credential, data);
  }
  return credential;
}

代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom

/**
 * Get a SecretKey from a SAML Assertion
 */
private byte[] getSecretKeyFromAssertion(
  SamlAssertionWrapper samlAssertion,
  SecurityTokenReference secRef,
  RequestData data
) throws WSSecurityException {
  STRParserUtil.checkSamlTokenBSPCompliance(secRef, samlAssertion, data.getBSPEnforcer());
  SAMLKeyInfo samlKi =
    SAMLUtil.getCredentialFromSubject(samlAssertion, new WSSSAMLKeyInfoProcessor(data),
        data.getSigVerCrypto(), data.getCallbackHandler());
  if (samlKi == null) {
    throw new WSSecurityException(
      WSSecurityException.ErrorCode.FAILED_CHECK, "invalidSAMLToken",
      new Object[] {"No Secret Key"});
  }
  return samlKi.getSecret();
}

代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom

SAMLUtil.getCredentialFromSubject(samlAssertion, new WSSSAMLKeyInfoProcessor(data),
    data.getSigVerCrypto(), data.getCallbackHandler());

代码示例来源:origin: apache/cxf

new WSSSAMLKeyInfoProcessor(requestData), sigCrypto, callbackHandler
);

代码示例来源:origin: org.apache.cxf.services.sts/cxf-services-sts-core

new WSSSAMLKeyInfoProcessor(requestData), sigCrypto, callbackHandler
);

代码示例来源:origin: org.apache.cxf.fediz/fediz-idp-core

samlKeyInfo =
    SAMLUtil.getCredentialFromKeyInfo(
      keyInfo.getDOM(), new WSSSAMLKeyInfoProcessor(requestData, new WSDocInfo(doc)), sigCrypto
    );
} catch (WSSecurityException ex) {

代码示例来源:origin: apache/cxf

if (keyInfo != null) {
  samlKeyInfo = SAMLUtil.getCredentialFromKeyInfo(
    keyInfo.getDOM(), new WSSSAMLKeyInfoProcessor(requestData), sigCrypto
  );
} else if (!keyInfoMustBeAvailable) {
  new WSSSAMLKeyInfoProcessor(requestData),
  requestData.getSigVerCrypto(),
  requestData.getCallbackHandler()

代码示例来源:origin: org.apache.cxf/cxf-rt-rs-security-oauth2-saml

keyInfo.getDOM(), new WSSSAMLKeyInfoProcessor(data),
    data.getSigVerCrypto()
  );
assertion.verifySignature(samlKeyInfo);
assertion.parseSubject(
  new WSSSAMLKeyInfoProcessor(data), data.getSigVerCrypto(),
  data.getCallbackHandler()
);

代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom

SAMLUtil.getCredentialFromSubject(samlAssertion, new WSSSAMLKeyInfoProcessor(data),
      data.getSigVerCrypto(), data.getCallbackHandler());
parserResult.setCerts(keyInfo.getCerts());

代码示例来源:origin: apache/cxf

samlKeyInfo =
    SAMLUtil.getCredentialFromKeyInfo(
      keyInfo.getDOM(), new WSSSAMLKeyInfoProcessor(requestData), sigCrypto
    );
} catch (WSSecurityException ex) {

代码示例来源:origin: apache/cxf

keyInfo.getDOM(), new WSSSAMLKeyInfoProcessor(data),
    data.getSigVerCrypto()
  );
assertion.verifySignature(samlKeyInfo);
assertion.parseSubject(
  new WSSSAMLKeyInfoProcessor(data), data.getSigVerCrypto(),
  data.getCallbackHandler()
);

代码示例来源:origin: apache/cxf

SAMLKeyInfo samlKeyInfo =
  SAMLUtil.getCredentialFromKeyInfo(
    keyInfo.getDOM(), new WSSSAMLKeyInfoProcessor(requestData), sigCrypto
  );
assertion.verifySignature(samlKeyInfo);

代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom

samlAssertion = new SamlAssertionWrapper(processedToken);
samlAssertion.parseSubject(
  new WSSSAMLKeyInfoProcessor(data),
  data.getSigVerCrypto(), data.getCallbackHandler()
);

代码示例来源:origin: org.apache.cxf/cxf-rt-rs-security-xml

if (keyInfo != null) {
  samlKeyInfo = SAMLUtil.getCredentialFromKeyInfo(
    keyInfo.getDOM(), new WSSSAMLKeyInfoProcessor(data),
    data.getSigVerCrypto()
  );
  new WSSSAMLKeyInfoProcessor(data), data.getSigVerCrypto(),
  data.getCallbackHandler()
);

代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom

new WSSSAMLKeyInfoProcessor(data),
      data.getSigVerCrypto(), data.getCallbackHandler());
parserResult.setCerts(samlKi.getCerts());

代码示例来源:origin: org.apache.cxf.services.sts/cxf-services-sts-core

SAMLKeyInfo samlKeyInfo =
  SAMLUtil.getCredentialFromKeyInfo(
    keyInfo.getDOM(), new WSSSAMLKeyInfoProcessor(requestData), sigCrypto
  );
assertion.verifySignature(samlKeyInfo);

代码示例来源:origin: apache/cxf

if (keyInfo != null) {
  samlKeyInfo = SAMLUtil.getCredentialFromKeyInfo(
    keyInfo.getDOM(), new WSSSAMLKeyInfoProcessor(data),
    data.getSigVerCrypto()
  );
  new WSSSAMLKeyInfoProcessor(data), data.getSigVerCrypto(),
  data.getCallbackHandler()
);

代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom

SAMLKeyInfo samlKeyInfo =
  SAMLUtil.getCredentialFromSubject(
      samlAssertion, new WSSSAMLKeyInfoProcessor(data),
      userCrypto, data.getCallbackHandler()
  );

代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom

new WSSSAMLKeyInfoProcessor(data),
      data.getSigVerCrypto(), data.getCallbackHandler());
X509Certificate[] foundCerts = samlKi.getCerts();

代码示例来源:origin: codice/ddf

SAMLUtil.getCredentialFromKeyInfo(
     keyInfo.getDOM(),
     new WSSSAMLKeyInfoProcessor(requestData),
     crypto.getSignatureCrypto());
} catch (WSSecurityException e) {

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