activemq-cpp-3.8.2
X500Principal.h
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef _DECAF_SECURITY_AUTH_X500_X500PRINCIPAL_H_
19 #define _DECAF_SECURITY_AUTH_X500_X500PRINCIPAL_H_
20 
21 #include <string>
22 #include <vector>
23 
25 #include <decaf/util/Map.h>
26 #include <decaf/io/InputStream.h>
27 
28 namespace decaf {
29 namespace security {
30 namespace auth {
31 namespace x500 {
32 
33  class X500Principal : public Principal {
34  public:
35 
36  /*X500Principal( unsigned char* name, int offset, int len );
37  X500Principal( decaf::io::InputStream& is );
38  X500Principal( const std::string& name );
39  X500Principal( const std::string& name,
40  const decaf::util::Map<std::string, std::string>& keywordMap );*/
41 
42  virtual ~X500Principal();
43 
44  virtual std::string getName() const = 0;
45 
46  virtual void getEncoded( std::vector<unsigned char>& output ) const = 0;
47 
48  virtual int hashCode() const = 0;
49 
50  /*virtual std::string getName( const std::string& format ) const;
51 
52  virtual std::string getName(const std::string& format,
53  const decaf::util::Map<std::string, std::string>& oldMap );*/
54  };
55 
56 }}}}
57 
58 #endif /*_DECAF_SECURITY_AUTH_X500_X500PRINCIPAL_H_*/
virtual void getEncoded(std::vector< unsigned char > &output) const =0
virtual std::string getName() const =0
Provides the name of this principal.
Base interface for a principal, which can represent an individual or organization.
Definition: Principal.h:32
Definition: X500Principal.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25