/*
- * Copyright 2009 Internet2
+ * Copyright 2009-2010 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @param validate true iff XML parsing should be done with validation
*/
SAML2AssertionPolicy(
- const saml2md::MetadataProvider* metadataProvider=NULL,
- const xmltooling::QName* role=NULL,
- const xmltooling::TrustEngine* trustEngine=NULL,
+ const saml2md::MetadataProvider* metadataProvider=nullptr,
+ const xmltooling::QName* role=nullptr,
+ const xmltooling::TrustEngine* trustEngine=nullptr,
bool validate=true
- ) : SecurityPolicy(metadataProvider, role, trustEngine, validate) {
- }
+ );
- virtual ~SAML2AssertionPolicy() {}
+ virtual ~SAML2AssertionPolicy();
virtual void reset(bool messageOnly=false);
- void _reset(bool messageOnly=false) {
- m_confirmation = false;
- }
+ void _reset(bool messageOnly=false);
/**
* Returns the subject confirmation that was successfully accepted by the policy.
*
* @return a successfully evaluated SubjectConfirmation
*/
- const saml2::SubjectConfirmation* getSubjectConfirmation() const {
- return m_confirmation;
- }
+ const saml2::SubjectConfirmation* getSubjectConfirmation() const;
/**
* Sets the SubjectConfirmation that was successfully accepted by the policy.
*
* @param confirmation the successfully evaluated SubjectConfirmation
*/
- void setSubjectConfirmation(const saml2::SubjectConfirmation* confirmation) {
- m_confirmation = confirmation;
- }
+ void setSubjectConfirmation(const saml2::SubjectConfirmation* confirmation);
private:
const saml2::SubjectConfirmation* m_confirmation;