2 * Licensed to the University Corporation for Advanced Internet
3 * Development, Inc. (UCAID) under one or more contributor license
4 * agreements. See the NOTICE file distributed with this work for
5 * additional information regarding copyright ownership.
7 * UCAID licenses this file to you under the Apache License,
8 * Version 2.0 (the "License"); you may not use this file except
9 * in compliance with the License. You may obtain a copy of the
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
17 * either express or implied. See the License for the specific
18 * language governing permissions and limitations under the License.
22 * @file saml/saml1/binding/SAMLArtifactType0002.h
24 * Type 0x0002 SAML 1.x artifact class.
27 #ifndef __saml_artifacttype0002_h__
28 #define __saml_artifacttype0002_h__
30 #include <saml/binding/SAMLArtifact.h>
36 * Type 0x0002 SAML 1.x artifact class
38 class SAML_API SAMLArtifactType0002 : public SAMLArtifact
40 SAMLArtifactType0002& operator=(const SAMLArtifactType0002& src);
43 * Decodes a base64-encoded type 0x0002 artifact
45 * @param s NULL-terminated base64-encoded string
47 SAMLArtifactType0002(const char* s);
50 * Constructs an artifact with the specified source URL, but a random assertion handle.
52 * @param sourceLocation source URL
54 SAMLArtifactType0002(const std::string& sourceLocation);
57 * Constructs an artifact with the specified source URL and assertion handle.
59 * @param sourceLocation source URL
60 * @param handle HANDLE_LENGTH bytes of binary data
62 SAMLArtifactType0002(const std::string& sourceLocation, const std::string& handle);
64 virtual ~SAMLArtifactType0002();
66 // Virtual function overrides.
67 SAMLArtifactType0002* clone() const;
68 std::string getSource() const;
69 std::string getMessageHandle() const;
72 /** Length of assertion handle */
73 static const unsigned int HANDLE_LENGTH;
79 * @param src object to copy
81 SAMLArtifactType0002(const SAMLArtifactType0002& src);
87 #endif /* __saml_artifacttype0002_h__ */