.getBuilder(IDPSSODescriptor.DEFAULT_ELEMENT_NAME); IDPSSODescriptor idpDescriptor = builder.buildObject(); idpDescriptor.setWantAuthnRequestsSigned(wantAuthnRequestSigned); idpDescriptor.addSupportedProtocol(SAMLConstants.SAML20P_NS);
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { IDPSSODescriptor descriptor = (IDPSSODescriptor) samlObject; if (attribute.getLocalName().equals(IDPSSODescriptor.WANT_AUTHN_REQ_SIGNED_ATTRIB_NAME)) { descriptor.setWantAuthnRequestsSigned(XSBooleanValue.valueOf(attribute.getValue())); } else { super.processAttribute(samlObject, attribute); } } }
entityDescriptor.getRoleDescriptors().add(idpssoDescriptor); idpssoDescriptor.setWantAuthnRequestsSigned(false); idpssoDescriptor.addSupportedProtocol(SAMLConstants.SAML20P_NS);