public enum TransportLayerProtocol extends Enum<TransportLayerProtocol>
Enum Constant and Description |
---|
SSL
Not considered secure enough any more.
|
TLS
Currently considered secure enough.
|
Modifier and Type | Method and Description |
---|---|
static org.refcodes.data.Scheme |
toScheme(String aProtocol)
Determines the HTTP
Scheme from the provided protocol. |
static TransportLayerProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransportLayerProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransportLayerProtocol TLS
public static final TransportLayerProtocol SSL
public static TransportLayerProtocol[] values()
for (TransportLayerProtocol c : TransportLayerProtocol.values()) System.out.println(c);
public static TransportLayerProtocol 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 static org.refcodes.data.Scheme toScheme(String aProtocol)
Scheme
from the provided protocol.aProtocol
- The protocol from which to determine the Scheme
.Scheme
.Copyright © 2018. All rights reserved.