org.openid4java.discovery.xri
Class LocalXriResolver
java.lang.Object
org.openid4java.discovery.xri.LocalXriResolver
- All Implemented Interfaces:
- XriResolver
public class LocalXriResolver
- extends Object
- implements XriResolver
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalXriResolver
public LocalXriResolver()
getResolver
public Resolver getResolver()
discover
public List discover(XriIdentifier xri)
throws DiscoveryException
- Description copied from interface:
XriResolver
- Performs OpenID discovery on the supplied XRI identifier.
- Specified by:
discover in interface XriResolver
- Parameters:
xri - The XRI identifier
- Returns:
- A list of DiscoveryInformation, ordered the discovered
priority.
- Throws:
DiscoveryException - if discovery failed.
parseIdentifier
public XriIdentifier parseIdentifier(String identifier)
throws DiscoveryException
- Specified by:
parseIdentifier in interface XriResolver
- Throws:
DiscoveryException
extractDiscoveryInformation
protected List extractDiscoveryInformation(XRDS xrds,
XriIdentifier identifier,
Resolver xriResolver)
throws DiscoveryException
- Extracts OpenID discovery endpoints from a XRDS discovery result
for XRI identifiers.
- Parameters:
xrds - The discovered XRDS document.identifier - The identifier on which discovery was performed.xriResolver - The XRI resolver to use for extraction of OpenID
service endpoints.
- Returns:
- A list of DiscoveryInformation endpoints.
- Throws:
DiscoveryException - when invalid information is discovered.
extractDiscoveryInformationOpenID
protected boolean extractDiscoveryInformationOpenID(Resolver xriResolver,
ArrayList out,
XRD baseXRD,
XriIdentifier identifier,
String srvType,
boolean wantCID)
Copyright © 2013 Sxip. All Rights Reserved.