public static enum OpenSshCertificate.Type extends Enum<OpenSshCertificate.Type>
OpenSshCertificate
s have a type indicating whether the certificate if for a host key (certifying a host
identity) or for a user key (certifying a user identity). Note: values order is significantEnum Constant and Description |
---|
HOST
Host key certificate.
|
USER
User key certificate.
|
Modifier and Type | Field and Description |
---|---|
static List<OpenSshCertificate.Type> |
VALUES |
Modifier and Type | Method and Description |
---|---|
static OpenSshCertificate.Type |
fromCode(int code) |
int |
getCode() |
static OpenSshCertificate.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenSshCertificate.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpenSshCertificate.Type USER
public static final OpenSshCertificate.Type HOST
public static final List<OpenSshCertificate.Type> VALUES
public static OpenSshCertificate.Type[] values()
for (OpenSshCertificate.Type c : OpenSshCertificate.Type.values()) System.out.println(c);
public static OpenSshCertificate.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getCode()
public static OpenSshCertificate.Type fromCode(int code)
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.