JSD-7610 SAML单点
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
736 B

package com.fr.plugin.xxxx.saml.xxxx.saml.impl;
import com.fr.plugin.xxxx.saml.xxxx.saml.SAMLException;
import com.fr.plugin.xxxx.saml.xxxx.saml.SAMLRequest;
import com.fr.plugin.xxxx.saml.xxxx.saml.ServiceProvider;
import com.fr.plugin.xxxx.saml.xxxx.saml.response.RequestBuilder;
public class SAMLRequestImpl implements SAMLRequest {
@Override
public String generate() throws SAMLException {
ServiceProvider sp = new ServiceProviderImpl();
RequestBuilder requestBuilder = new RequestBuilder(sp.getIssuer(), sp.getServiceUrl(),
sp.getPrivateKeyEntry());
requestBuilder.setDigestAlgorithm(sp.getDigestAlgorithm());
requestBuilder.setSignatureAlgorithm(sp.getSignatureAlgorithm());
return requestBuilder.build();
}
}