public class OIDCAuthorization.URLProcessor
extends java.lang.Object
Constructor and Description |
---|
URLProcessor() |
Modifier and Type | Method and Description |
---|---|
javax.net.ssl.HttpsURLConnection |
getConnection()
Gets the connection.
|
java.lang.String |
getRedirectionURL()
Gets the redirection URL.
|
int |
getResponseCode()
Gets the response code.
|
java.io.File |
getUploadFile()
Gets the upload file.
|
void |
injectUpload()
Inject a file to upload into the URLConnection and set method to POST.
|
OIDCAuthorization.URLProcessor |
prepare(java.net.URL requestURL)
Prepare.
|
java.lang.String |
process()
Process a URL, that is: try to access it's resource, display error if any, return a redirection URL if indicated by the server.
|
OIDCAuthorization.URLProcessor |
setAccessToken(com.nimbusds.oauth2.sdk.token.AccessToken accessToken)
Sets the access token.
|
void |
setUploadFile(java.io.File uploadFile)
Sets the upload file.
|
public void setUploadFile(java.io.File uploadFile) throws java.io.IOException
uploadFile
- the new upload filejava.io.IOException
- Signals that an I/O exception has occurred.public java.io.File getUploadFile()
public javax.net.ssl.HttpsURLConnection getConnection()
public java.lang.String getRedirectionURL()
public int getResponseCode()
public OIDCAuthorization.URLProcessor setAccessToken(com.nimbusds.oauth2.sdk.token.AccessToken accessToken)
accessToken
- the access tokenpublic OIDCAuthorization.URLProcessor prepare(java.net.URL requestURL) throws java.io.IOException, java.security.KeyManagementException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException, java.security.KeyStoreException
requestURL
- the request URLjava.io.IOException
- Signals that an I/O exception has occurred.java.security.KeyManagementException
- the key management exceptionjava.security.NoSuchAlgorithmException
- the no such algorithm exceptionjava.security.cert.CertificateException
- the certificate exceptionjava.security.KeyStoreException
- the key store exceptionpublic java.lang.String process() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.public void injectUpload() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.