org.glassfish.jersey.client.authentication
Interface HttpAuthenticationFeature.Builder

All Known Subinterfaces:
HttpAuthenticationFeature.BasicBuilder, HttpAuthenticationFeature.UniversalBuilder
Enclosing class:
HttpAuthenticationFeature

public static interface HttpAuthenticationFeature.Builder

Builder that creates instances of HttpAuthenticationFeature.


Method Summary
 HttpAuthenticationFeature build()
          Build the feature.
 HttpAuthenticationFeature.Builder credentials(String username, byte[] password)
          Set credentials.
 HttpAuthenticationFeature.Builder credentials(String username, String password)
          Set credentials.
 

Method Detail

credentials

HttpAuthenticationFeature.Builder credentials(String username,
                                              byte[] password)
Set credentials.

Parameters:
username - Username.
password - Password as byte array.
Returns:
This builder.

credentials

HttpAuthenticationFeature.Builder credentials(String username,
                                              String password)
Set credentials.

Parameters:
username - Username.
password - Password as String.
Returns:
This builder.

build

HttpAuthenticationFeature build()
Build the feature.

Returns:
Http authentication feature configured from this builder.


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.