Package org.wildfly.security.pem
Class PemEntry<T>
java.lang.Object
org.wildfly.security.pem.PemEntry<T>
- Type Parameters:
T- the entry type
An entry in a PEM file or stream.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PemEntry
Construct a new instance.- Parameters:
entry- the entry value (notnull)
-
-
Method Details
-
getEntry
Get the entry value.- Returns:
- the entry value (not
null)
-
tryCast
Try to cast this entry's value to the given type.- Type Parameters:
U- the type to attempt to cast to- Parameters:
clazz- the type class to attempt to cast to (notnull)- Returns:
- the cast value, or
nullif the type does not match
-