authorizationDecisionStatementV1Builder.buildObject(); Subject authDecisionSubject = SAML1ComponentBuilder.createSaml1v1Subject(decisionStatementBean.getSubject()); authDecision.setSubject(authDecisionSubject); authDecision.setResource(decisionStatementBean.getResource()); authDecision.setDecision(transformDecisionType(decisionStatementBean.getDecision())); for (ActionBean actionBean : decisionStatementBean.getActions()) { Action actionElement = createSamlv1Action(actionBean); authDecision.getActions().add(actionElement); if (decisionStatementBean.getEvidence() instanceof Evidence) { authDecision.setEvidence((Evidence)decisionStatementBean.getEvidence());
/** * For SAML 1.1 default to setting the SubjectBean on the statements if they * don't already have a Subject defined. */ private void setSubjectOnBeans() { if (attributeBeans != null) { for (AttributeStatementBean attributeBean : attributeBeans) { if (attributeBean.getSubject() == null) { attributeBean.setSubject(subjectBean); } } } if (authBeans != null) { for (AuthenticationStatementBean authBean : authBeans) { if (authBean.getSubject() == null) { authBean.setSubject(subjectBean); } } } if (authDecisionBeans != null) { for (AuthDecisionStatementBean authDecisionBean : authDecisionBeans) { if (authDecisionBean.getSubject() == null) { authDecisionBean.setSubject(subjectBean); } } } }
AuthzDecisionStatement authDecision = authorizationDecisionStatementBuilder.buildObject(); authDecision.setResource(decisionStatementBean.getResource()); authDecision.setDecision( transformDecisionType(decisionStatementBean.getDecision()) ); for (ActionBean actionBean : decisionStatementBean.getActions()) { Action actionElement = createSamlAction(actionBean); authDecision.getActions().add(actionElement); if (decisionStatementBean.getEvidence() instanceof Evidence) { authDecision.setEvidence((Evidence)decisionStatementBean.getEvidence());
AuthDecisionStatementBean authDecBean = new AuthDecisionStatementBean(); authDecBean.setDecision(Decision.INDETERMINATE); authDecBean.setResource("https://sp.example.com/SAML2"); authDecBean.setSubject(subjectBean); authDecBean.setActions(Collections.singletonList(actionBean)); callback.setAuthDecisionStatementData(Collections.singletonList(authDecBean));
if (bean.getSubject() != null) { return bean.getSubject();
AuthDecisionStatementBean authDecBean = new AuthDecisionStatementBean(); authDecBean.setDecision(Decision.INDETERMINATE); authDecBean.setResource("https://sp.example.com/SAML2"); ActionBean actionBean = new ActionBean(); actionBean.setContents("Read"); authDecBean.setActions(Collections.singletonList(actionBean)); callback.setAuthDecisionStatementData(Collections.singletonList(authDecBean));
/** * For SAML 1.1 default to setting the SubjectBean on the statements if they * don't already have a Subject defined. */ private void setSubjectOnBeans() { if (attributeBeans != null) { for (AttributeStatementBean attributeBean : attributeBeans) { if (attributeBean.getSubject() == null) { attributeBean.setSubject(subjectBean); } } } if (authBeans != null) { for (AuthenticationStatementBean authBean : authBeans) { if (authBean.getSubject() == null) { authBean.setSubject(subjectBean); } } } if (authDecisionBeans != null) { for (AuthDecisionStatementBean authDecisionBean : authDecisionBeans) { if (authDecisionBean.getSubject() == null) { authDecisionBean.setSubject(subjectBean); } } } }