KeyPair which is generated the 1st time loadKeys(SessionContext) is called. If
there is a file backing it up and the file exists, the key is loaded from it. Otherwise a new key pair is generated
and saved (provided a path is configured and isOverwriteAllowed()
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| public static final String | |
| public static final boolean | |
| private boolean | |
| private final AtomicReference | |
| private int | |
| private AlgorithmParameterSpec | |
| private boolean | |
| private Path |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected Iterable | |
| protected abstract void | |
| pack-priv boolean | |
| protected KeyPair | |
| public String | |
| public int | |
| public AlgorithmParameterSpec | |
| public Path | |
| public boolean | |
| public boolean | |
| protected Iterable | |
| public synchronized List | loadKeys(SessionContext
The session)SessionContext for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool or session unknown).Implements org. Load available keys. |
| protected Iterable | |
| protected Iterable | |
| public void | |
| protected void | setFilePermissions(Path
Path of a newly created (empty) host key fileRestricts the file permissions such that only the owner can access the file. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setStrictFilePermissions(boolean
whether to restrict file permissions to owner-only access strict)Sets whether this |
| protected void |
| algorithm | back to summary |
|---|---|
| private String algorithm | |
| DEFAULT_ALGORITHM | back to summary |
|---|---|
| public static final String DEFAULT_ALGORITHM | |
| DEFAULT_ALLOWED_TO_OVERWRITE | back to summary |
|---|---|
| public static final boolean DEFAULT_ALLOWED_TO_OVERWRITE | |
| enforceFilePermissions | back to summary |
|---|---|
| private boolean enforceFilePermissions | |
| keyPairHolder | back to summary |
|---|---|
| private final AtomicReference<Iterable<KeyPair>> keyPairHolder | |
| keySize | back to summary |
|---|---|
| private int keySize | |
| keySpec | back to summary |
|---|---|
| private AlgorithmParameterSpec keySpec | |
| overwriteAllowed | back to summary |
|---|---|
| private boolean overwriteAllowed | |
| path | back to summary |
|---|---|
| private Path path | |
| AbstractGeneratorHostKeyProvider | back to summary |
|---|---|
| protected AbstractGeneratorHostKeyProvider() | |
| clearLoadedKeys | back to summary |
|---|---|
| public void clearLoadedKeys() | |
| doReadKeyPairs | back to summary |
|---|---|
| protected Iterable | |
| doWriteKeyPair | back to summary |
|---|---|
| protected abstract void doWriteKeyPair(NamedResource resourceKey, KeyPair kp, OutputStream outputStream) throws IOException, GeneralSecurityException | |
| edDSAAlgorithmsMatch | back to summary |
|---|---|
| pack-priv boolean edDSAAlgorithmsMatch(String expectedAlgorithm, String keyAlgorithm) | |
| generateKeyPair | back to summary |
|---|---|
| protected KeyPair generateKeyPair(String algorithm) throws GeneralSecurityException | |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements org.
| |
| getKeySize | back to summary |
|---|---|
| public int getKeySize() Implements org.
| |
| getKeySpec | back to summary |
|---|---|
| public AlgorithmParameterSpec getKeySpec() | |
| getPath | back to summary |
|---|---|
| public Path getPath() | |
| hasStrictFilePermissions | back to summary |
|---|---|
| public boolean hasStrictFilePermissions() | |
| isOverwriteAllowed | back to summary |
|---|---|
| public boolean isOverwriteAllowed() | |
| loadFromFile | back to summary |
|---|---|
| protected Iterable | |
| loadKeys | back to summary |
|---|---|
| public synchronized List Implements org. Doc from org. Load available keys.
| |
| readKeyPairs | back to summary |
|---|---|
| protected Iterable | |
| resolveKeyPairs | back to summary |
|---|---|
| protected Iterable | |
| setAlgorithm | back to summary |
|---|---|
| public void setAlgorithm(String algorithm) | |
| setFilePermissions | back to summary |
|---|---|
| protected void setFilePermissions(Path path) throws IOException Restricts the file permissions such that only the owner can access the file.
| |
| setKeySize | back to summary |
|---|---|
| public void setKeySize(int keySize) | |
| setKeySpec | back to summary |
|---|---|
| public void setKeySpec(AlgorithmParameterSpec keySpec) | |
| setOverwriteAllowed | back to summary |
|---|---|
| public void setOverwriteAllowed(boolean overwriteAllowed) | |
| setPath | back to summary |
|---|---|
| public void setPath(Path path) | |
| setStrictFilePermissions | back to summary |
|---|---|
| public void setStrictFilePermissions(boolean strict) Sets whether this
| |
| writeKeyPair | back to summary |
|---|---|
| protected void writeKeyPair(KeyPair kp, Path keyPath) throws IOException, GeneralSecurityException | |