-/*
- * Copyright 2001-2010 Internet2
+/**
+ * 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.
*
- * 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
+ * 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.
*/
/**
bool isValid() const {
return time(nullptr) <= getValidUntilEpoch();
}
- /** Returns true iff the object is valid at the supplied time. */
+ /**
+ * Returns true iff the object is valid at the supplied time.
+ *
+ * @param t the time to check against
+ */
bool isValid(time_t t) const {
return t <= getValidUntilEpoch();
}
DECL_XMLOBJECT_SIMPLE(SAML_API,ActionNamespace,Namespace,SAML 2.0 Metadata Extension ActionNamespace element);
BEGIN_XMLOBJECT(SAML_API,localizedNameType,xmltooling::XMLObject,SAML 2.0 localizedNameType type);
- DECL_STRING_ATTRIB(Lang,LANG);
+ /** xml:lang attribute name. */
+ static const XMLCh LANG_ATTRIB_NAME[];
+
+ /**
+ * Sets the xml:lang attribute.
+ *
+ * @param Lang the value to set
+ */
+ virtual void setLang(const XMLCh* Lang)=0;
+
/** localizedNameType local name */
static const XMLCh TYPE_NAME[];
END_XMLOBJECT;
BEGIN_XMLOBJECT(SAML_API,localizedURIType,xmltooling::XMLObject,SAML 2.0 localizedURIType type);
- DECL_STRING_ATTRIB(Lang,LANG);
+ /** xml:lang attribute name. */
+ static const XMLCh LANG_ATTRIB_NAME[];
+
+ /**
+ * Sets the xml:lang attribute.
+ *
+ * @param Lang the value to set
+ */
+ virtual void setLang(const XMLCh* Lang)=0;
+
/** localizedURIType local name */
static const XMLCh TYPE_NAME[];
END_XMLOBJECT;
END_XMLOBJECT;
BEGIN_XMLOBJECT(SAML_API,Keywords,xmltooling::XMLObject,SAML Metadata Extension for Login UI Keywords element);
- DECL_STRING_ATTRIB(Lang,LANG);
+ /** xml:lang attribute name. */
+ static const XMLCh LANG_ATTRIB_NAME[];
+
+ /**
+ * Sets the xml:lang attribute.
+ *
+ * @param Lang the value to set
+ */
+ virtual void setLang(const XMLCh* Lang)=0;
+
DECL_SIMPLE_CONTENT(Values);
/** KeywordsType local name */
static const XMLCh TYPE_NAME[];
END_XMLOBJECT;
BEGIN_XMLOBJECT(SAML_API,Logo,xmltooling::XMLObject,SAML Metadata Extension for Login UI Logo element);
- DECL_STRING_ATTRIB(Lang,LANG);
+ /** xml:lang attribute name. */
+ static const XMLCh LANG_ATTRIB_NAME[];
+
+ /**
+ * Sets the xml:lang attribute.
+ *
+ * @param Lang the value to set
+ */
+ virtual void setLang(const XMLCh* Lang)=0;
+
DECL_INTEGER_ATTRIB(Height,HEIGHT);
DECL_INTEGER_ATTRIB(Width,WIDTH);
DECL_SIMPLE_CONTENT(URL);