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

All Superinterfaces:
HttpAuthenticationFeature.Builder
Enclosing class:
HttpAuthenticationFeature

public static interface HttpAuthenticationFeature.UniversalBuilder
extends HttpAuthenticationFeature.Builder

Extension of HttpAuthenticationFeature.Builder that builds the http authentication feature configured in universal mode that supports basic and digest authentication.


Method Summary
 HttpAuthenticationFeature.UniversalBuilder credentialsForBasic(String username, byte[] password)
          Set credentials that will be used for basic authentication only.
 HttpAuthenticationFeature.UniversalBuilder credentialsForBasic(String username, String password)
          Set credentials that will be used for basic authentication only.
 HttpAuthenticationFeature.UniversalBuilder credentialsForDigest(String username, byte[] password)
          Set credentials that will be used for digest authentication only.
 HttpAuthenticationFeature.UniversalBuilder credentialsForDigest(String username, String password)
          Set credentials that will be used for digest authentication only.
 
Methods inherited from interface org.glassfish.jersey.client.authentication.HttpAuthenticationFeature.Builder
build, credentials, credentials
 

Method Detail

credentialsForBasic

HttpAuthenticationFeature.UniversalBuilder credentialsForBasic(String username,
                                                               String password)
Set credentials that will be used for basic authentication only.

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

credentialsForBasic

HttpAuthenticationFeature.UniversalBuilder credentialsForBasic(String username,
                                                               byte[] password)
Set credentials that will be used for basic authentication only.

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

credentialsForDigest

HttpAuthenticationFeature.UniversalBuilder credentialsForDigest(String username,
                                                                String password)
Set credentials that will be used for digest authentication only.

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

credentialsForDigest

HttpAuthenticationFeature.UniversalBuilder credentialsForDigest(String username,
                                                                byte[] password)
Set credentials that will be used for digest authentication only.

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


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