- ForceAuthn(m_ForceAuthn);
- IsPassive(m_IsPassive);
- setProtocolBinding(src.getProtocolBinding());
- setAssertionConsumerServiceIndex(m_AssertionConsumerServiceIndex);
- setAssertionConsumerServiceURL(src.getAssertionConsumerServiceURL());
- setAttributeConsumingServiceIndex(m_AttributeConsumingServiceIndex);
- setProviderName(src.getProviderName());
-
- if (src.getSubject())
- setSubject(src.getSubject()->cloneSubject());
- if (src.getNameIDPolicy())
- setNameIDPolicy(src.getNameIDPolicy()->cloneNameIDPolicy());
- if (src.getConditions())
- setConditions(src.getConditions()->cloneConditions());
- if (src.getRequestedAuthnContext())
- setRequestedAuthnContext(src.getRequestedAuthnContext()->cloneRequestedAuthnContext());
- if (src.getScoping())
- setScoping(src.getScoping()->cloneScoping());
+ void _clone(const AuthnRequestImpl& src) {
+ RequestAbstractTypeImpl::_clone(src);
+ IMPL_CLONE_BOOLEAN_ATTRIB(ForceAuthn);
+ IMPL_CLONE_BOOLEAN_ATTRIB(IsPassive);
+ IMPL_CLONE_ATTRIB(ProtocolBinding);
+ IMPL_CLONE_INTEGER_ATTRIB(AssertionConsumerServiceIndex);
+ IMPL_CLONE_ATTRIB(AssertionConsumerServiceURL);
+ IMPL_CLONE_INTEGER_ATTRIB(AttributeConsumingServiceIndex);
+ IMPL_CLONE_ATTRIB(ProviderName);
+ IMPL_CLONE_TYPED_CHILD(Subject);
+ IMPL_CLONE_TYPED_CHILD(NameIDPolicy);
+ IMPL_CLONE_TYPED_CHILD(Conditions);
+ IMPL_CLONE_TYPED_CHILD(RequestedAuthnContext);
+ IMPL_CLONE_TYPED_CHILD(Scoping);