3
* ====================================================================
4
* Licensed to the Apache Software Foundation (ASF) under one
5
* or more contributor license agreements. See the NOTICE file
6
* distributed with this work for additional information
7
* regarding copyright ownership. The ASF licenses this file
8
* to you under the Apache License, Version 2.0 (the
9
* "License"); you may not use this file except in compliance
10
* with the License. You may obtain a copy of the License at
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
17
* KIND, either express or implied. See the License for the
18
* specific language governing permissions and limitations
20
* ====================================================================
24
#ifndef SVN_JAVAHL_CREDENTIAL_HPP
25
#define SVN_JAVAHL_CREDENTIAL_HPP
27
#include "jniwrapper/jni_object.hpp"
28
#include "jniwrapper/jni_string.hpp"
30
#include "AuthnCallback.hpp"
35
* Object wrapper for @c org.apache.subversion.javahl.SVNUtil.Credential.
39
class Credential : public ::Java::Object
43
* Object wrapper for @c ...Credential$Kind.
45
class Kind : public ::Java::Object
49
* Constructs a and wraps a new Credential$Kind object.
51
explicit Kind(::Java::Env env, const ::Java::String& value);
55
* This object's implementation details.
57
class ClassImpl : public Object::ClassImpl
59
friend class ::Java::ClassCacheImpl;
62
explicit ClassImpl(::Java::Env env, jclass cls);
67
const ::Java::MethodID m_static_mid_from_string;
70
const ClassImpl& impl() const
72
return *dynamic_cast<const ClassImpl*>(m_impl);
75
friend class ::Java::ClassCacheImpl;
76
static const char* const m_class_name;
80
* Constructs a wrapper around @a jthis.
81
* The constructor does not verify the class of the wrapped object.
83
explicit Credential(::Java::Env env, jobject jthis)
84
: ::Java::Object(env, ::Java::ClassCache::get_credential(env), jthis)
88
* Constructs and wraps a new Credential object
90
explicit Credential(::Java::Env env, jobject kind,
91
const ::Java::String& realm,
92
const ::Java::String& store,
93
const ::Java::String& username,
94
const ::Java::String& password,
95
jobject info, jobject failures,
96
const ::Java::String& passphrase);
100
* This object's implementation details.
102
class ClassImpl : public Object::ClassImpl
104
friend class ::Java::ClassCacheImpl;
107
explicit ClassImpl(::Java::Env env, jclass cls);
110
virtual ~ClassImpl();
112
const ::Java::MethodID m_mid_ctor;
115
const ClassImpl& impl() const
117
return *dynamic_cast<const ClassImpl*>(m_impl);
120
friend class ::Java::ClassCacheImpl;
121
static const char* const m_class_name;
124
} // namespace JavaHL
126
#endif // SVN_JAVAHL_CREDENTIAL_HPP