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

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

Best Java code snippets using com.bazaarvoice.auth.hmac.common.Credentials$CredentialsBuilder.withSignature (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

builder.withSignature(request.getHeaderString(DEFAULT_SIGNATURE_HTTP_HEADER));
builder.withTimestamp(request.getHeaderString(DEFAULT_TIMESTAMP_HTTP_HEADER));
builder.withVersion(
origin: bazaarvoice/jersey-hmac-auth

builder.withSignature(request.getHeaderString(DEFAULT_SIGNATURE_HTTP_HEADER));
builder.withTimestamp(request.getHeaderString(DEFAULT_TIMESTAMP_HTTP_HEADER));
builder.withVersion(
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$CredentialsBuilderwithSignature

Popular methods of Credentials$CredentialsBuilder

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

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Notification (javax.management)
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