Add remark that findChallenge(String) is not type safe

pull/81/head
Richard Körber 2019-04-17 14:42:27 +02:00
parent 9870f44cbf
commit 396ddd7c86
No known key found for this signature in database
GPG Key ID: AAB9FD19C78AA3E0
1 changed files with 3 additions and 0 deletions

View File

@ -108,6 +108,9 @@ public class Authorization extends AcmeJsonResource {
/**
* Finds a {@link Challenge} of the given type. Responding to this {@link Challenge}
* is sufficient for authorization.
* <p>
* {@link Authorization#findChallenge(Class)} should be preferred, as this variant
* is not type safe.
*
* @param type
* Challenge name (e.g. "http-01")