public void assertPolicy(QName qName) { Collection<AssertionInfo> ais = aim.getAssertionInfo(qName); if (ais != null && !ais.isEmpty()) { for (AssertionInfo ai : ais) { ai.setAsserted(true); } } }
private void assertAssertion(AssertionInfoMap aim, QName type) { Collection<AssertionInfo> aic = aim.getAssertionInfo(type); for (AssertionInfo ai : aic) { ai.setAsserted(true); } }
public static boolean assertPolicy(AssertionInfoMap aim, QName name) { Collection<AssertionInfo> ais = aim.getAssertionInfo(name); if (ais != null && !ais.isEmpty()) { for (AssertionInfo ai : ais) { ai.setAsserted(true); } return true; } return false; }
public void assertPolicy(QName qName) { Collection<AssertionInfo> ais = aim.getAssertionInfo(qName); if (ais != null && !ais.isEmpty()) { for (AssertionInfo ai : ais) { ai.setAsserted(true); } } }
public static boolean assertPolicy(AssertionInfoMap aim, QName name) { Collection<AssertionInfo> ais = aim.getAssertionInfo(name); if (ais != null && !ais.isEmpty()) { for (AssertionInfo ai : ais) { ai.setAsserted(true); } return true; } return false; }
@Override public void unassertPolicy(QName qName, String reason) { Collection<AssertionInfo> ais = aim.getAssertionInfo(qName); if (ais != null && !ais.isEmpty()) { for (AssertionInfo ai : ais) { ai.setNotAsserted(reason); } } }
@Override public void unassertPolicy(QName qName, String reason) { Collection<AssertionInfo> ais = aim.getAssertionInfo(qName); if (ais != null && !ais.isEmpty()) { for (AssertionInfo ai : ais) { ai.setNotAsserted(reason); } } }
private void assertAssertion(AssertionInfoMap aim, QName type) { Collection<AssertionInfo> aic = aim.getAssertionInfo(type); for (AssertionInfo ai : aic) { ai.setAsserted(true); } }
public void assertPolicy(Assertion assertion) { Collection<AssertionInfo> ais = aim.getAssertionInfo(assertion.getName()); if (ais != null && !ais.isEmpty()) { for (AssertionInfo ai : ais) { if (ai.getAssertion() == assertion) { ai.setAsserted(true); } } } }
@Override public void unassertPolicy(Assertion assertion, String reason) { Collection<AssertionInfo> ais = aim.getAssertionInfo(assertion.getName()); if (ais != null && !ais.isEmpty()) { for (AssertionInfo ai : ais) { if (ai.getAssertion() == assertion) { ai.setNotAsserted(reason); } } } }
public void assertPolicy(Assertion assertion) { Collection<AssertionInfo> ais = aim.getAssertionInfo(assertion.getName()); if (ais != null && !ais.isEmpty()) { for (AssertionInfo ai : ais) { if (ai.getAssertion() == assertion) { ai.setAsserted(true); } } } }
public void handleMessage(Message message) throws Fault { AssertionInfoMap aim = message.get(AssertionInfoMap.class); for (QName an : getAssertionTypes()) { Collection<AssertionInfo> ais = aim.getAssertionInfo(an); if (LOG.isLoggable(Level.INFO)) { LOG.info("Asserting for " + an); } if (null != ais) { for (AssertionInfo ai : ais) { ai.setAsserted(true); } } } } }
@Override public void unassertPolicy(Assertion assertion, String reason) { Collection<AssertionInfo> ais = aim.getAssertionInfo(assertion.getName()); if (ais != null && !ais.isEmpty()) { for (AssertionInfo ai : ais) { if (ai.getAssertion() == assertion) { ai.setNotAsserted(reason); } } } }
public void handleMessage(Message message) throws Fault { AssertionInfoMap aim = message.get(AssertionInfoMap.class); for (QName an : getAssertionTypes()) { Collection<AssertionInfo> ais = aim.getAssertionInfo(an); if (LOG.isLoggable(Level.INFO)) { LOG.info("Asserting for " + an); } if (null != ais) { for (AssertionInfo ai : ais) { ai.setAsserted(true); } } } } }
private void setupNamespace(AddressingProperties maps, Message message) { AssertionInfoMap aim = message.get(AssertionInfoMap.class); if (null == aim) { String ns = (String)message.getContextualProperty(MAPAggregator.ADDRESSING_NAMESPACE); if (ns != null) { maps.exposeAs(ns); } return; } Collection<AssertionInfo> aic = aim.getAssertionInfo(MetadataConstants.USING_ADDRESSING_2004_QNAME); if (aic != null && !aic.isEmpty()) { maps.exposeAs(Names200408.WSA_NAMESPACE_NAME); } }
private void setupNamespace(AddressingProperties maps, Message message) { AssertionInfoMap aim = message.get(AssertionInfoMap.class); if (null == aim) { String ns = (String)message.getContextualProperty(MAPAggregator.ADDRESSING_NAMESPACE); if (ns != null) { maps.exposeAs(ns); } return; } Collection<AssertionInfo> aic = aim.getAssertionInfo(MetadataConstants.USING_ADDRESSING_2004_QNAME); if (aic != null && !aic.isEmpty()) { maps.exposeAs(Names200408.WSA_NAMESPACE_NAME); } }
private void assertUnusedTokens(AbstractTokenWrapper wrapper) { if (wrapper == null) { return; } Collection<AssertionInfo> ais = aim.getAssertionInfo(wrapper.getName()); if (ais != null) { for (AssertionInfo ai : ais) { if (ai.getAssertion() == wrapper) { ai.setAsserted(true); } } } ais = aim.getAssertionInfo(wrapper.getToken().getName()); if (ais != null) { for (AssertionInfo ai : ais) { if (ai.getAssertion() == wrapper.getToken()) { ai.setAsserted(true); } } } }
private void assertUnusedTokens(AbstractTokenWrapper wrapper) { if (wrapper == null) { return; } Collection<AssertionInfo> ais = aim.getAssertionInfo(wrapper.getName()); if (ais != null) { for (AssertionInfo ai : ais) { if (ai.getAssertion() == wrapper) { ai.setAsserted(true); } } } ais = aim.getAssertionInfo(wrapper.getToken().getName()); if (ais != null) { for (AssertionInfo ai : ais) { if (ai.getAssertion() == wrapper.getToken()) { ai.setAsserted(true); } } } }
/** * {@inheritDoc} */ @Override public void handleMessage(Message message) throws Fault { AssertionInfoMap aim = message.get(AssertionInfoMap.class); if (aim != null) { // http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/ws-securitypolicy-1.2-spec-os.html#_Toc161826515 Collection<AssertionInfo> ais = aim.getAssertionInfo(SP12Constants.ENCRYPTED_PARTS); if (ais != null) { for (AssertionInfo ai : ais) { Assertion a = ai.getAssertion(); if (a instanceof SignedEncryptedParts) { SignedEncryptedParts sep = (SignedEncryptedParts)a; if (!sep.isIgnorable() && !sep.isOptional()) { InboundHandler.getCredentials().add(new ConfidentialityCredential(true)); break; } } } } } } }
/** * {@inheritDoc} */ @Override public void handleMessage(Message message) throws Fault { AssertionInfoMap aim = message.get(AssertionInfoMap.class); if (aim != null) { // http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/ws-securitypolicy-1.2-spec-os.html#_Toc161826515 Collection<AssertionInfo> ais = aim.getAssertionInfo(SP12Constants.ENCRYPTED_PARTS); if (ais != null) { for (AssertionInfo ai : ais) { Assertion a = ai.getAssertion(); if (a instanceof SignedEncryptedParts) { SignedEncryptedParts sep = (SignedEncryptedParts)a; if (!sep.isIgnorable() && !sep.isOptional()) { InboundHandler.getCredentials().add(new ConfidentialityCredential(true)); break; } } } } } } }