Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the defined authentication-context and recovery-authentication-co…
…ntext for the ElytronSubjectFactory on data sources Add the authentication-context dependency to the ConnectionDefinitionService. For this simple approach the dependency is added to guard against the authentication-context being removed if it's in use by a resource-adapter. This should later be moved into a proper capability itself so the value of the authentication-context capability can be directly used.
- Loading branch information
Showing
10 changed files
with
148 additions
and
71 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
connector/src/main/java/org/jboss/as/connector/_private/Capabilities.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright 2017 Red Hat, Inc. | ||
* | ||
* Licensed 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.jboss.as.connector._private; | ||
|
||
import javax.sql.DataSource; | ||
|
||
import org.jboss.as.controller.capability.RuntimeCapability; | ||
|
||
/** | ||
* Capabilities for the connector subsystems. | ||
* <p> | ||
* <strong>This is not to be used outside of the various connector subsystems.</strong> | ||
* </p> | ||
* | ||
* @author <a href="mailto:jperkins@redhat.com">James R. Perkins</a> | ||
*/ | ||
public interface Capabilities { | ||
/** | ||
* The name for the data-source capability | ||
*/ | ||
String DATA_SOURCE_CAPABILITY_NAME = "org.wildfly.data-source"; | ||
|
||
/** | ||
* The name of the authentication-context capability provided by Elytron. | ||
*/ | ||
String AUTHENTICATION_CONTEXT_CAPABILITY = "org.wildfly.security.authentication-context"; | ||
|
||
/** | ||
* The data-source capability | ||
*/ | ||
RuntimeCapability<Void> DATA_SOURCE_CAPABILITY = RuntimeCapability.Builder.of(DATA_SOURCE_CAPABILITY_NAME, true, DataSource.class) | ||
.build(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 0 additions & 49 deletions
49
connector/src/main/java/org/jboss/as/connector/subsystems/datasources/Capabilities.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.