diff options
author | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2022-07-13 16:53:43 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2022-07-15 15:35:10 +0200 |
commit | eed3e5deaf3fd13c353361e45420735a93d0f3d0 (patch) | |
tree | b4e738c5cf85775153237ec07ea08f4e97d224f1 /jrt/src/com/yahoo/jrt/SecurityContext.java | |
parent | ff26daaf31ec0567dc6a9049d5e275cf7c4810dc (diff) |
Return granted capabilities from PeerAuthorizer
Introduce new ConnectionAuthContext as replacement for AuthorizationResult/SecurityContext.
Diffstat (limited to 'jrt/src/com/yahoo/jrt/SecurityContext.java')
-rw-r--r-- | jrt/src/com/yahoo/jrt/SecurityContext.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/jrt/src/com/yahoo/jrt/SecurityContext.java b/jrt/src/com/yahoo/jrt/SecurityContext.java deleted file mode 100644 index 4eef99cb93f..00000000000 --- a/jrt/src/com/yahoo/jrt/SecurityContext.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.jrt; - -import java.security.cert.X509Certificate; -import java.util.List; - -/** - * @author bjorncs - */ -public class SecurityContext { - - private final List<X509Certificate> peerCertificateChain; - - public SecurityContext(List<X509Certificate> peerCertificateChain) { - this.peerCertificateChain = peerCertificateChain; - } - - /** - * @return the peer certificate chain if the peer was authenticated, empty list if not. - */ - public List<X509Certificate> peerCertificateChain() { - return peerCertificateChain; - } -} |