Codota Logo
Credentials$CredentialsBuilder.build
Code IndexAdd Codota to your IDE (free)

How to use
build
method
in
com.bazaarvoice.auth.hmac.common.Credentials$CredentialsBuilder

Best Java code snippets using com.bazaarvoice.auth.hmac.common.Credentials$CredentialsBuilder.build (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: com.macasaet.auth/jersey-hmac-auth-server2

public P provide() {
  final ContainerRequest request = getRequestProvider().get();
  final UriInfo uriInfo = request.getUriInfo();
  final URI requestUri = uriInfo.getRequestUri();
  final MultivaluedMap<? super String, ? extends String> queryParameters = uriInfo
      .getQueryParameters();
  final List<? extends String> apiKeys = queryParameters.get("apiKey");
  if (apiKeys == null || apiKeys.isEmpty()) {
    throw new BadRequestException("apiKey is required");
  }
  final CredentialsBuilder builder = builder();
  builder.withApiKey(!apiKeys.isEmpty() ? apiKeys.get(0) : null);
  builder.withSignature(request.getHeaderString("X-Auth-Signature"));
  builder.withTimestamp(request.getHeaderString("X-Auth-Timestamp"));
  builder.withVersion(
      Version.fromValue(request.getHeaderString("X-Auth-Version")));
  builder.withMethod(request.getMethod());
  builder.withPath(requestUri.getPath() + "?" + requestUri.getQuery());
  final P retval = getAuthenticator().authenticate(builder.build());
  if (retval == null) {
    throw new NotAuthorizedException(status(UNAUTHORIZED).build());
  }
  return retval;
}
origin: com.bazaarvoice.auth/jersey-hmac-auth-server2

final P retval = getAuthenticator().authenticate(builder.build());
if (retval == null) {
  throw new NotAuthorizedException(Response.status(Response.Status.UNAUTHORIZED).build());
origin: bazaarvoice/jersey-hmac-auth

final P retval = getAuthenticator().authenticate(builder.build());
if (retval == null) {
  throw new NotAuthorizedException(Response.status(Response.Status.UNAUTHORIZED).build());
origin: com.macasaet.auth/jersey-hmac-auth-server

public Credentials decode(HttpRequestContext request) {
  return Credentials.builder()
      .withApiKey(getApiKey(request))
      .withSignature(getSignature(request))
      .withPath(getPath(request))
      .withTimestamp(getTimestamp(request))
      .withContent(getContent(request))
      .withMethod(getMethod(request))
      .withVersion(Version.V1)
      .build();
}
origin: com.bazaarvoice.auth/jersey-hmac-auth-server

public Credentials decode(HttpRequestContext request) {
  return Credentials.builder()
      .withApiKey(getApiKey(request))
      .withSignature(getSignature(request))
      .withPath(getPath(request))
      .withTimestamp(getTimestamp(request))
      .withContent(getContent(request))
      .withMethod(getMethod(request))
      .withVersion(Version.V1)
      .build();
}
origin: bazaarvoice/jersey-hmac-auth

public Credentials decode(HttpRequestContext request) {
  return Credentials.builder()
      .withApiKey(getApiKey(request))
      .withSignature(getSignature(request))
      .withPath(getPath(request))
      .withTimestamp(getTimestamp(request))
      .withContent(getContent(request))
      .withMethod(getMethod(request))
      .withVersion(Version.V1)
      .build();
}
com.bazaarvoice.auth.hmac.commonCredentials$CredentialsBuilderbuild

Popular methods of Credentials$CredentialsBuilder

  • withApiKey
  • withMethod
  • withPath
  • withSignature
  • withTimestamp
  • withVersion
  • withContent
  • <init>

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • onCreateOptionsMenu (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • BoxLayout (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now