spSsoDescriptor.setAuthnRequestsSigned(true); spSsoDescriptor.setWantAssertionsSigned(true); spSsoDescriptor.addSupportedProtocol(SAMLConstants.SAML20P_NS);
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { SPSSODescriptor descriptor = (SPSSODescriptor) samlObject; if (attribute.getLocalName().equals(SPSSODescriptor.AUTH_REQUESTS_SIGNED_ATTRIB_NAME)) { descriptor.setAuthnRequestsSigned(XSBooleanValue.valueOf(attribute.getValue())); } else if (attribute.getLocalName().equals(SPSSODescriptor.WANT_ASSERTIONS_SIGNED_ATTRIB_NAME)) { descriptor.setWantAssertionsSigned(XSBooleanValue.valueOf(attribute.getValue())); } else { super.processAttribute(samlObject, attribute); } } }
spSsoDescriptor.setAuthnRequestsSigned(true); spSsoDescriptor.setWantAssertionsSigned(true); spSsoDescriptor.addSupportedProtocol(SAMLConstants.SAML20P_NS);
final SPSSODescriptor spDescriptor = builder.buildObject(); spDescriptor.setAuthnRequestsSigned(this.authnRequestSigned); spDescriptor.setWantAssertionsSigned(this.wantAssertionSigned); spDescriptor.addSupportedProtocol(SAMLConstants.SAML20P_NS);
SPSSODescriptor descriptor = getSPSSODescriptor(); roleDescriptor = descriptor; descriptor.setAuthnRequestsSigned(sp.isAuthnRequestsSigned()); descriptor.setWantAssertionsSigned(sp.isWantAssertionsSigned());
spSSODescriptor.setAuthnRequestsSigned(true); spSSODescriptor.addSupportedProtocol(SAMLConstants.SAML20P_NS);