-
Notifications
You must be signed in to change notification settings - Fork 576
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9386 from vespa-engine/bjorncs/node-identifier
Bjorncs/node identifier
- Loading branch information
Showing
16 changed files
with
53 additions
and
1,298 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...ioning/src/main/java/com/yahoo/config/provision/security/DummyNodeIdentifierProvider.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,31 @@ | ||
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. | ||
package com.yahoo.config.provision.security; | ||
|
||
import com.google.inject.Inject; | ||
import com.google.inject.Provider; | ||
|
||
import java.security.cert.X509Certificate; | ||
import java.util.List; | ||
|
||
/** | ||
* @author bjorncs | ||
*/ | ||
public class DummyNodeIdentifierProvider implements Provider<NodeIdentifier> { | ||
|
||
private final ThrowingNodeIdentifier instance = new ThrowingNodeIdentifier(); | ||
|
||
@Inject | ||
public DummyNodeIdentifierProvider() {} | ||
|
||
@Override | ||
public NodeIdentifier get() { | ||
return instance; | ||
} | ||
|
||
private static class ThrowingNodeIdentifier implements NodeIdentifier { | ||
@Override | ||
public NodeIdentity identifyNode(List<X509Certificate> peerCertificateChain) { | ||
throw new UnsupportedOperationException(); | ||
} | ||
} | ||
} |
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
72 changes: 0 additions & 72 deletions
72
...src/main/java/com/yahoo/vespa/hosted/provision/restapi/v2/filter/AuthorizationFilter.java
This file was deleted.
Oops, something went wrong.
211 changes: 0 additions & 211 deletions
211
...pository/src/main/java/com/yahoo/vespa/hosted/provision/restapi/v2/filter/Authorizer.java
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
...ository/src/main/java/com/yahoo/vespa/hosted/provision/restapi/v2/filter/FilterUtils.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.