parent
b1f623128c
commit
5cd43c2139
|
|
@ -194,7 +194,7 @@ public abstract class AbstractUrlBasedTicketValidator implements TicketValidator
|
|||
|
||||
protected abstract String retrieveResponseFromServer(URL validationUrl, String ticket);
|
||||
|
||||
public Assertion validate(final String ticket, final String service) throws TicketValidationException {
|
||||
public final Assertion validate(final String ticket, final String service) throws TicketValidationException {
|
||||
|
||||
|
||||
final String validationUrl = constructValidationUrl(ticket, service);
|
||||
|
|
@ -239,4 +239,16 @@ public abstract class AbstractUrlBasedTicketValidator implements TicketValidator
|
|||
protected final String getEncoding() {
|
||||
return this.encoding;
|
||||
}
|
||||
|
||||
protected final boolean isRenew() {
|
||||
return this.renew;
|
||||
}
|
||||
|
||||
protected final String getCasServerUrlPrefix() {
|
||||
return this.casServerUrlPrefix;
|
||||
}
|
||||
|
||||
protected final Map<String, String> getCustomParameters() {
|
||||
return this.customParameters;
|
||||
}
|
||||
}
|
||||
|
|
@ -41,7 +41,7 @@ public class Cas20ProxyTicketValidator extends Cas20ServiceTicketValidator {
|
|||
super(casServerUrlPrefix);
|
||||
}
|
||||
|
||||
public ProxyList getAllowedProxyChains() {
|
||||
protected final ProxyList getAllowedProxyChains() {
|
||||
return this.allowedProxyChains;
|
||||
}
|
||||
|
||||
|
|
@ -65,11 +65,15 @@ public class Cas20ProxyTicketValidator extends Cas20ServiceTicketValidator {
|
|||
throw new InvalidProxyChainTicketValidationException("Invalid proxy chain: " + proxies.toString());
|
||||
}
|
||||
|
||||
public void setAcceptAnyProxy(final boolean acceptAnyProxy) {
|
||||
public final void setAcceptAnyProxy(final boolean acceptAnyProxy) {
|
||||
this.acceptAnyProxy = acceptAnyProxy;
|
||||
}
|
||||
|
||||
public void setAllowedProxyChains(final ProxyList allowedProxyChains) {
|
||||
public final void setAllowedProxyChains(final ProxyList allowedProxyChains) {
|
||||
this.allowedProxyChains = allowedProxyChains;
|
||||
}
|
||||
|
||||
protected boolean isAcceptAnyProxy() {
|
||||
return this.acceptAnyProxy;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -184,5 +184,17 @@ public class Cas20ServiceTicketValidator extends AbstractCasProtocolUrlBasedTick
|
|||
|
||||
public final void setProxyRetriever(final ProxyRetriever proxyRetriever) {
|
||||
this.proxyRetriever = proxyRetriever;
|
||||
}
|
||||
}
|
||||
|
||||
protected final String getProxyCallbackUrl() {
|
||||
return this.proxyCallbackUrl;
|
||||
}
|
||||
|
||||
protected final ProxyGrantingTicketStorage getProxyGrantingTicketStorage() {
|
||||
return this.proxyGrantingTicketStorage;
|
||||
}
|
||||
|
||||
protected final ProxyRetriever getProxyRetriever() {
|
||||
return this.proxyRetriever;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue