-/*
- * Copyright 2001-2009 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+/**
+ * Licensed to the University Corporation for Advanced Internet
+ * Development, Inc. (UCAID) under one or more contributor license
+ * agreements. See the NOTICE file distributed with this work for
+ * additional information regarding copyright ownership.
+ *
+ * UCAID licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the
+ * License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied. See the License for the specific
+ * language governing permissions and limitations under the License.
*/
/**
/**
* Gets the signing algorithm for the signature.
*
- * @return the signature algorithm
+ * @return the signature algorithm, or nullptr if indeterminate
*/
virtual const XMLCh* getSignatureAlgorithm() const=0;
/**
* Sets a KeyInfo object to embed in the Signature.
*
- * @param keyInfo pointer to a KeyInfo object, or NULL
+ * @param keyInfo pointer to a KeyInfo object, or nullptr
*/
virtual void setKeyInfo(KeyInfo* keyInfo)=0;
* for validation purposes is provided through the native
* DSIGSignature object.
*
- * @return pointer to a KeyInfo object, or NULL
+ * @return pointer to a KeyInfo object, or nullptr
*/
virtual KeyInfo* getKeyInfo() const=0;
* Sets the ContentReference object to the Signature to be applied
* when the signature is created.
*
- * @param reference the reference to attach, or NULL
+ * @param reference the reference to attach, or nullptr
*/
virtual void setContentReference(ContentReference* reference)=0;
* for validation purposes is provided through the native
* DSIGSignature object.
*
- * @return pointer to a ContentReference object, or NULL
+ * @return pointer to a ContentReference object, or nullptr
*/
virtual ContentReference* getContentReference() const=0;
*
* @param credential optional source of signing key and KeyInfo
*/
- virtual void sign(const xmltooling::Credential* credential=NULL)=0;
+ virtual void sign(const xmltooling::Credential* credential=nullptr)=0;
/**
* Type-safe clone operation.
#else
virtual xmltooling::XMLObject* buildObject(
#endif
- const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix=NULL, const xmltooling::QName* schemaType=NULL
+ const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix=nullptr, const xmltooling::QName* schemaType=nullptr
) const;
/**