-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 571254 - [Passage][LA] agent state
Start designing request-dependent services to empower PassageAgent Signed-off-by: eparovyshnaya <[email protected]>
- Loading branch information
1 parent
e9dd779
commit e4fd20c
Showing
6 changed files
with
73 additions
and
19 deletions.
There are no files selected for viewing
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
2 changes: 1 addition & 1 deletion
2
...s/org.eclipse.passage.lac/src/org/eclipse/passage/internal/lac/base/CannotUseFeature.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
43 changes: 43 additions & 0 deletions
43
...clipse.passage.lac/src/org/eclipse/passage/internal/lac/base/access/RequestKeyKeeper.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,43 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 ArSysOp | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0/. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* ArSysOp - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.passage.internal.lac.base.access; | ||
|
||
import java.io.InputStream; | ||
|
||
import org.eclipse.passage.lic.internal.api.LicensedProduct; | ||
import org.eclipse.passage.lic.internal.api.LicensingException; | ||
import org.eclipse.passage.lic.internal.api.io.KeyKeeper; | ||
import org.eclipse.passage.lic.internal.net.api.handle.NetRequest; | ||
import org.eclipse.passage.lic.internal.net.handle.ProductUserRequest; | ||
|
||
final class RequestKeyKeeper<R extends NetRequest> implements KeyKeeper { | ||
|
||
// TODO: stated request | ||
private final ProductUserRequest<R> request; | ||
|
||
public RequestKeyKeeper(ProductUserRequest<R> request) { | ||
this.request = request; | ||
} | ||
|
||
@Override | ||
public LicensedProduct id() { | ||
return request.product().get(); | ||
} | ||
|
||
@Override | ||
public InputStream productPublicKey() throws LicensingException { | ||
// TODO: read from request.content or state, if already sent | ||
return null; | ||
} | ||
|
||
} |
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