public class HttpBasedServiceCredential extends AbstractCredential
UNKNOWN_ID| Modifier | Constructor and Description |
|---|---|
protected |
HttpBasedServiceCredential()
Empty constructor used by Kryo for de-serialization.
|
|
HttpBasedServiceCredential(URL callbackUrl)
Creates a new instance for an HTTP endpoint located at the given URL.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
URL |
getCallbackUrl() |
String |
getId()
Gets a credential identifier that is safe to record for logging, auditing, or presentation to the user.
|
int |
hashCode() |
toStringprotected HttpBasedServiceCredential()
public HttpBasedServiceCredential(URL callbackUrl)
callbackUrl - Non-null URL that will be contacted to validate the credential.IllegalArgumentException - if the callbackUrl is null.public String getId()
Credential.UNKNOWN_ID for cases where an ID
is not readily available or meaningful.public final URL getCallbackUrl()
public int hashCode()
hashCode in class AbstractCredentialpublic boolean equals(Object obj)
equals in class AbstractCredentialCopyright © 2004-2015 Apereo. All Rights Reserved.