Add PasswordCredentialAuth 88/89388/3
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 26 Apr 2020 01:32:13 +0000 (03:32 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 4 May 2020 10:22:16 +0000 (12:22 +0200)
commit8e77db6cf4b9444752169ad4840d8d6aaa9a4de6
treebea2adbd73b0e40681e8c134f39f534fd038b10c
parent505e8fce857be9e3e04d34bbf574a9284505fe56
Add PasswordCredentialAuth

CredentialAuth is a generic interface which needs to be specialized
to capture capture which credentials are being passed. Downstreams
(in netconf) have a FIXME related to this, as they have no way to
express the type-safe dependency.

Introduce PasswordCredentialAuth to which downstreams can safely
bind. Also add a method to allow run-time discovery of required
credetial type.

Change-Id: I844db3b460bf95110fb3adbb687ce25e996e3608
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
aaa-authn-api/src/main/java/org/opendaylight/aaa/api/CredentialAuth.java
aaa-authn-api/src/main/java/org/opendaylight/aaa/api/PasswordCredentialAuth.java [new file with mode: 0644]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/shiro/idm/IdmLightProxy.java
aaa-shiro/impl/src/main/resources/OSGI-INF/blueprint/impl-blueprint.xml