00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one or more 00003 * contributor license agreements. See the NOTICE file distributed with 00004 * this work for additional information regarding copyright ownership. 00005 * The ASF licenses this file to You under the Apache License, Version 2.0 00006 * (the "License"); you may not use this file except in compliance with 00007 * the License. You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 #ifndef _DECAF_SECURITY_AUTH_X500_X500PRINCIPAL_H_ 00019 #define _DECAF_SECURITY_AUTH_X500_X500PRINCIPAL_H_ 00020 00021 #include <string> 00022 #include <vector> 00023 00024 #include <decaf/security/Principal.h> 00025 #include <decaf/util/Map.h> 00026 #include <decaf/io/InputStream.h> 00027 00028 namespace decaf { 00029 namespace security { 00030 namespace auth { 00031 namespace x500 { 00032 00033 class X500Principal : public Principal { 00034 public: 00035 00036 /*X500Principal( unsigned char* name, int offset, int len ); 00037 X500Principal( decaf::io::InputStream& is ); 00038 X500Principal( const std::string& name ); 00039 X500Principal( const std::string& name, 00040 const decaf::util::Map<std::string, std::string>& keywordMap );*/ 00041 00042 virtual ~X500Principal(); 00043 00044 virtual std::string getName() const = 0; 00045 00046 virtual void getEncoded( std::vector<unsigned char>& output ) const = 0; 00047 00048 virtual int hashCode() const = 0; 00049 00050 /*virtual std::string getName( const std::string& format ) const; 00051 00052 virtual std::string getName(const std::string& format, 00053 const decaf::util::Map<std::string, std::string>& oldMap );*/ 00054 }; 00055 00056 }}}} 00057 00058 #endif /*_DECAF_SECURITY_AUTH_X500_X500PRINCIPAL_H_*/
1.6.1