if (bean.getSubject() != null) { return bean.getSubject();
SAML1ComponentBuilder.createSaml1v1Subject(statementBean.getSubject()); attributeStatement.setSubject(attributeSubject);
/** * 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); } } } }
/** * 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); } } } }