Package org.faceless.publisher.type
Class AWS4AuthenticationURLConnectionProcessor
java.lang.Object
org.faceless.publisher.type.AbstractURLConnectionProcessor
org.faceless.publisher.type.AWS4AuthenticationURLConnectionProcessor
- All Implemented Interfaces:
URLConnectionProcessor
A URLConnectionProcessor that supports the AWS4 authentication used by Amazon's S3 storage
and compatible systems. This can be added to the list of
URLConnectionProcessor
object returned by ReportFactory.getURLConnectionProcessors()
to
allow BFO Publisher to load resources from Amazon S3 URLs
If not specified in the constructor, the "access" and "secret" keys will be requested by calling the
the CallbackHandler
with
a NameCallback
(for the access key)
and PasswordCallback
(for the secret key)
-
Constructor Summary
ConstructorDescriptionCreate a new AWS4AuthenticationURLConnectionProcessor.AWS4AuthenticationURLConnectionProcessor
(String access, String secret) Create a new AWS4AuthenticationURLConnectionProcessor.Create a new AWS4AuthenticationURLConnectionProcessor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
before
(URL2Connection con) If this processermatches
, this method is called before the supplied URL connection is made.Methods inherited from class org.faceless.publisher.type.AbstractURLConnectionProcessor
after, getMatches, matches
-
Constructor Details
-
AWS4AuthenticationURLConnectionProcessor
public AWS4AuthenticationURLConnectionProcessor()Create a new AWS4AuthenticationURLConnectionProcessor. -
AWS4AuthenticationURLConnectionProcessor
Create a new AWS4AuthenticationURLConnectionProcessor.- Parameters:
access
- the "access key" supplied by the S3 storage providersecret
- the "secret key" supplied by the S3 storage provider
-
AWS4AuthenticationURLConnectionProcessor
Create a new AWS4AuthenticationURLConnectionProcessor.- Parameters:
handler
- the CallbackHandler to use for authorization
-
-
Method Details
-
before
Description copied from interface:URLConnectionProcessor
If this processermatches
, this method is called before the supplied URL connection is made. It can alter any request headers.- Specified by:
before
in interfaceURLConnectionProcessor
- Overrides:
before
in classAbstractURLConnectionProcessor
- Parameters:
con
- the connection- Throws:
IOException
-