deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject git commit: DELTASPIKE-441 default implementation of a simple SecurityViolation
Date Tue, 05 Nov 2013 21:42:53 GMT
Updated Branches:
  refs/heads/master 80720cf4c -> be37dc6b9


DELTASPIKE-441 default implementation of a simple SecurityViolation


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/be37dc6b
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/be37dc6b
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/be37dc6b

Branch: refs/heads/master
Commit: be37dc6b9553008527eb8dec55a0ba91a4606448
Parents: 80720cf
Author: Mark Struberg <struberg@apache.org>
Authored: Tue Nov 5 22:41:53 2013 +0100
Committer: Mark Struberg <struberg@apache.org>
Committed: Tue Nov 5 22:41:53 2013 +0100

----------------------------------------------------------------------
 .../authorization/DefaultSecurityViolation.java | 39 ++++++++++++++++++++
 1 file changed, 39 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/be37dc6b/deltaspike/modules/security/api/src/main/java/org/apache/deltaspike/security/api/authorization/DefaultSecurityViolation.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/security/api/src/main/java/org/apache/deltaspike/security/api/authorization/DefaultSecurityViolation.java
b/deltaspike/modules/security/api/src/main/java/org/apache/deltaspike/security/api/authorization/DefaultSecurityViolation.java
new file mode 100644
index 0000000..c92492e
--- /dev/null
+++ b/deltaspike/modules/security/api/src/main/java/org/apache/deltaspike/security/api/authorization/DefaultSecurityViolation.java
@@ -0,0 +1,39 @@
+/*
+ * 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 org.apache.deltaspike.security.api.authorization;
+
+/**
+ * Simple implementation of a SecurityViolation.
+ * It will only store the string it gets via the constructor.
+ */
+public class DefaultSecurityViolation implements SecurityViolation
+{
+    private String reason;
+
+    public DefaultSecurityViolation(String reason)
+    {
+        this.reason = reason;
+    }
+
+    @Override
+    public String getReason()
+    {
+        return reason;
+    }
+}


Mime
View raw message