Tabnine Logo
AbstractSecurityToken.getMapKeys
Code IndexAdd Tabnine to your IDE (free)

How to use
getMapKeys
method
in
org.apache.shindig.auth.AbstractSecurityToken

Best Java code snippets using org.apache.shindig.auth.AbstractSecurityToken.getMapKeys (Showing top 6 results out of 315)

origin: org.wso2.org.apache.shindig/shindig-common

/**
 * A helper to help load known supported keys from a provided map.
 *
 * @param map The map of values.
 * @see #getMapKeys()
 * @see #toMap()
 */
protected AbstractSecurityToken loadFromMap(Map<String, String> map) {
 for (Keys key : getMapKeys()) {
  key.loadFromMap(this, map);
 }
 return this;
}
origin: org.apache.shindig/shindig-common

/**
 * A helper to help load known supported keys from a provided map.
 *
 * @param map The map of values.
 * @see #getMapKeys()
 * @see #toMap()
 */
protected AbstractSecurityToken loadFromMap(Map<String, String> map) {
 for (Keys key : getMapKeys()) {
  key.loadFromMap(this, map);
 }
 return this;
}
origin: apache/shindig

/**
 * A helper to help load known supported keys from a provided map.
 *
 * @param map The map of values.
 * @see #getMapKeys()
 * @see #toMap()
 */
protected AbstractSecurityToken loadFromMap(Map<String, String> map) {
 for (Keys key : getMapKeys()) {
  key.loadFromMap(this, map);
 }
 return this;
}
origin: apache/shindig

/**
 * A {@link Map} representation of this {@link SecurityToken}.  Implementors that
 * handle additional keys not contained in {@link Keys} should override and
 * supplement the functionality of this method.
 *
 * @return A map of serialized token values keyed according to {@link Keys}.
 * @see #getMapKeys()
 * @see #loadFromMap(Map)
 */
public Map<String, String> toMap() {
 Map<String, String> map = Maps.newHashMap();
 for (Keys key : getMapKeys()) {
  String value = key.getValue(this);
  if (value != null) {
   map.put(key.getKey(), key.getValue(this));
  }
 }
 return map;
}
origin: org.wso2.org.apache.shindig/shindig-common

/**
 * A {@link Map} representation of this {@link SecurityToken}.  Implementors that
 * handle additional keys not contained in {@link Keys} should override and
 * supplement the functionality of this method.
 *
 * @return A map of serialized token values keyed according to {@link Keys}.
 * @see #getMapKeys()
 * @see #loadFromMap(Map)
 */
public Map<String, String> toMap() {
 Map<String, String> map = Maps.newHashMap();
 for (Keys key : getMapKeys()) {
  String value = key.getValue(this);
  if (value != null) {
   map.put(key.getKey(), key.getValue(this));
  }
 }
 return map;
}
origin: org.apache.shindig/shindig-common

/**
 * A {@link Map} representation of this {@link SecurityToken}.  Implementors that
 * handle additional keys not contained in {@link Keys} should override and
 * supplement the functionality of this method.
 *
 * @return A map of serialized token values keyed according to {@link Keys}.
 * @see #getMapKeys()
 * @see #loadFromMap(Map)
 */
public Map<String, String> toMap() {
 Map<String, String> map = Maps.newHashMap();
 for (Keys key : getMapKeys()) {
  String value = key.getValue(this);
  if (value != null) {
   map.put(key.getKey(), key.getValue(this));
  }
 }
 return map;
}
org.apache.shindig.authAbstractSecurityTokengetMapKeys

Javadoc

This method will govern the effectiveness of the protected #toMap() and #loadFromMap(SecurityToken,Map) helper methods.

If your implementation throws an exception on any of the get methods, you should not include the associated key here, and those values should be handled in an overridden implementation of #toMap() if they might contain useful information.

Popular methods of AbstractSecurityToken

  • getExpiresAt
  • setActiveUrl
  • setAppId
  • setAppUrl
  • setContainer
  • setDomain
  • setExpiresAt
    Set the expiration time for this token.
  • setModuleId
  • setOwnerId
  • setTrustedJson
  • setViewerId
  • toMap
    A Map representation of this SecurityToken. Implementors that handle additional keys not contained i
  • setViewerId,
  • toMap,
  • enforceNotExpired,
  • getContainer,
  • getMaxTokenTTL,
  • getTimeSource,
  • setExpires,
  • loadFromMap,
  • setTimeSource

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now