Enum Class Protocol
- All Implemented Interfaces:
Serializable
,Comparable<Protocol>
,Constable
This enum lists all network protocols that can be used during the signature creation or validation: OCSP, CRL, AIA, TSL...
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Protocol
This method try to retrieve the protocol indicated by the given URL string.getName()
Gets the name of the protocolstatic boolean
Indicates if the given URL uses FILE protocolstatic boolean
Indicates if the given URL uses FTP protocolstatic boolean
Indicates if the given string represents HTTP protocol.static boolean
Indicates if the given string represents HTTPS protocol.static boolean
Indicates if the given URL uses HTTP protocolstatic boolean
Indicates if the given URL uses LDAP protocolboolean
Indicates if the given URL uses the current protocolstatic Protocol
Returns the enum constant of this class with the specified name.static Protocol[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FILE
file -
HTTP
http -
HTTPS
https -
LDAP
ldap -
FTP
ftp
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
-
isHttps
Indicates if the given string represents HTTPS protocol.- Parameters:
name
-String
to be checked- Returns:
- true or false
-
isHttp
Indicates if the given string represents HTTP protocol.- Parameters:
name
-String
to be checked- Returns:
- true or false
-
isFileUrl
Indicates if the given URL uses FILE protocol- Parameters:
urlString
- to be checked- Returns:
- true or false
-
isHttpUrl
Indicates if the given URL uses HTTP protocol- Parameters:
urlString
- to be checked- Returns:
- true or false
-
isFtpUrl
Indicates if the given URL uses FTP protocol- Parameters:
urlString
- to be checked- Returns:
- true or false
-
isLdapUrl
Indicates if the given URL uses LDAP protocol- Parameters:
urlString
- to be checked- Returns:
- true or false
-
isTheSame
Indicates if the given URL uses the current protocol- Parameters:
urlString
- to be checked- Returns:
- true or false
-
getFrom
-