You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by ra...@apache.org on 2019/01/17 13:10:26 UTC
[tomee] 12/17: TOMEE-2365 - Added API CallerOnlyCredential.
This is an automated email from the ASF dual-hosted git repository.
radcortez pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git
commit aa0945802c395809a9f047b3708d70a149618cf1
Author: Roberto Cortez <ra...@yahoo.com>
AuthorDate: Thu Jan 17 12:29:18 2019 +0000
TOMEE-2365 - Added API CallerOnlyCredential.
---
.../credential/CallerOnlyCredential.java | 29 ++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/tomee/tomee-security/src/main/java/javax/security/enterprise/credential/CallerOnlyCredential.java b/tomee/tomee-security/src/main/java/javax/security/enterprise/credential/CallerOnlyCredential.java
new file mode 100644
index 0000000..325a9e0
--- /dev/null
+++ b/tomee/tomee-security/src/main/java/javax/security/enterprise/credential/CallerOnlyCredential.java
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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
+ *
+ * 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.
+ */
+package javax.security.enterprise.credential;
+
+public class CallerOnlyCredential implements Credential {
+ private final String caller;
+
+ public CallerOnlyCredential(String caller) {
+ this.caller = caller;
+ }
+
+ public String getCaller() {
+ return caller;
+ }
+}