Examples of KeyInfo


Examples of org.opensaml.xml.signature.KeyInfo

        if (assertion.isSigned()) {
            // Check for compliance against the defined AlgorithmSuite
            AlgorithmSuite algorithmSuite = data.getSamlAlgorithmSuite();
           
            Signature sig = assertion.getSignature();
            KeyInfo keyInfo = sig.getKeyInfo();
            SAMLKeyInfo samlKeyInfo =
                SAMLUtil.getCredentialDirectlyFromKeyInfo(
                    keyInfo.getDOM(), data
                );
           
            if (algorithmSuite != null) {
                AlgorithmSuiteValidator algorithmSuiteValidator = new
                    AlgorithmSuiteValidator(algorithmSuite);
View Full Code Here

Examples of org.opensaml.xml.signature.KeyInfo

            kiFactory.setEmitPublicKeyValue(true);
        } else {
            kiFactory.setEmitEntityCertificate(true);
        }
        try {
            KeyInfo keyInfo = kiFactory.newInstance().generate(
                    signingCredential);
            signature.setKeyInfo(keyInfo);
        } catch (org.opensaml.xml.security.SecurityException ex) {
            throw new WSSecurityException(
                    "Error generating KeyInfo from signing credential", ex);
View Full Code Here

Examples of org.opensaml.xml.signature.KeyInfo

    public void verifySignature(
        RequestData data, WSDocInfo docInfo
    ) throws WSSecurityException {
        Signature sig = getSignature();
        if (sig != null) {
            KeyInfo keyInfo = sig.getKeyInfo();
            SAMLKeyInfo samlKeyInfo =
                SAMLUtil.getCredentialDirectlyFromKeyInfo(keyInfo.getDOM(), data);
            verifySignature(samlKeyInfo);
        } else {
            LOG.debug("AssertionWrapper: no signature to validate");
        }
View Full Code Here

Examples of org.yaac.shared.property.KeyInfo

    assertEquals("kkk(20)/fff(201)", key2.asFullPathDesc());
  }
 
  @Test
  public void testAsHtml() {
    KeyInfo key = new KeyInfo(null, "kkk", "name", null, "keyString");
   
    assertEquals("<a href='#editor:keyString'>kkk(\"name\")</a>", key.asHtml());
  }
View Full Code Here

Examples of org.yaac.shared.property.KeyInfo

    assertEquals("<a href='#editor:keyString'>kkk(\"name\")</a>", key.asHtml());
  }
 
  @Test
  public void testEncodeDecode() {
    KeyInfo key1 = new KeyInfo(null, "kkk", null, 20L, "keyString");
    KeyInfo key2 = new KeyInfo(key1, "fff", null, 201L, "keyString");
   
    ResultCell cell = key2.populateResultCell(AutoBeanUtil.getResultCellFactory());
   
    assertEquals(key2, PropertyInfo.Builder.fromResultCell(cell));
  }
View Full Code Here

Examples of org.yaac.shared.property.KeyInfo

    assertEquals(key2, PropertyInfo.Builder.fromResultCell(cell));
  }
 
  @Test
  public void testAsExp() {
    KeyInfo key1 = new KeyInfo(null, "kkk", "name", null, "keyString");
    KeyInfo key2 = new KeyInfo(key1, "fff", null, 201L, "keyString");
   
    assertEquals("key('kkk','name','fff',201)", key2.asExpression(null));
  }
View Full Code Here

Examples of org.yaac.shared.property.KeyInfo

  /**
   *
   */
  @Test
  public void testAsSingleNodeDescName() {
    KeyInfo key = new KeyInfo(null, "kkk", "name", null, "keyString");
    assertEquals("kkk(\"name\")", key.asSingleNodeDesc());
  }
View Full Code Here

Examples of org.yaac.shared.property.KeyInfo

  /**
   *
   */
  @Test
  public void testAsSingleNodeDescId() {
    KeyInfo key = new KeyInfo(null, "kkk", null, 20L, "keyString");
    assertEquals("kkk(20)", key.asSingleNodeDesc());
  }
View Full Code Here

Examples of org.yaac.shared.property.KeyInfo

    assertEquals("kkk(20)", key.asSingleNodeDesc());
  }
 
  @Test
  public void testAsFullNodeDesc() {
    KeyInfo key1 = new KeyInfo(null, "kkk", null, 20L, "keyString");
    KeyInfo key2 = new KeyInfo(key1, "fff", null, 201L, "keyString");
   
    assertEquals("kkk(20)/fff(201)", key2.asFullPathDesc());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.