Class TrustAnchorsReader
java.lang.Object
com.irurueta.authserver.authorization.api.web.clientauth.TrustAnchorsReader
Reads the PEM files of the trusted certificate authorities into trust anchors. A file may hold several
certificates.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CERTIFICATE_TYPE
Type of the certificates.- See Also:
-
-
Constructor Details
-
TrustAnchorsReader
public TrustAnchorsReader()
-
-
Method Details
-
read
Reads the files.- Parameters:
paths- paths of the PEM files.- Returns:
- the trust anchors of every certificate of every file.
- Throws:
IllegalArgumentException- if a file cannot be read or holds no certificate, so a misconfigured server fails at startup instead of refusing every client.
-