Tabnine Logo
Association.getMacKey
Code IndexAdd Tabnine to your IDE (free)

How to use
getMacKey
method
in
org.openid4java.association.Association

Best Java code snippets using org.openid4java.association.Association.getMacKey (Showing top 20 results out of 315)

origin: org.wso2.org.openid4java/openid4java-nodeps

public void save(String opUrl, Association association) {
  cleanupExpired();
  try {
    JdbcTemplate jdbcTemplate = getJdbcTemplate();
    int cnt = jdbcTemplate.update(_sqlInsert,
                   new Object[]
                       {
                           opUrl,
                           association.getHandle(),
                           association.getType(),
                           association.getMacKey() == null ? null :
                           new String(
                               Base64.encodeBase64(association.getMacKey().getEncoded())),
                           association.getExpiry()});
  } catch (Exception e) {
    _log.error("Error saving association to table: " + _tableName, e);
  }
}
origin: org.openid4java/openid4java

public void save ( String opUrl, Association association )
{
  cleanupExpired ( ) ;
  
  try
  {
    JdbcTemplate jdbcTemplate = getJdbcTemplate ( ) ;
    int cnt = jdbcTemplate.update ( _sqlInsert,
                    new Object[]
                      {
                         opUrl,
                        association.getHandle ( ),
                        association.getType ( ),
                        association.getMacKey ( ) == null ? null :
                          new String (
                                Base64.encodeBase64 ( association.getMacKey ( ).getEncoded ( ) ) ),
                        association.getExpiry ( ) } ) ;
  }
  catch ( Exception e )
  {
    _log.error ( "Error saving association to table: " + _tableName, e ) ;
  }
}
origin: com.cloudbees/openid4java-shaded

public void save ( String opUrl, Association association )
{
  cleanupExpired ( ) ;
  
  try
  {
    JdbcTemplate jdbcTemplate = getJdbcTemplate ( ) ;
    int cnt = jdbcTemplate.update ( _sqlInsert,
                    new Object[]
                      {
                         opUrl,
                        association.getHandle ( ),
                        association.getType ( ),
                        association.getMacKey ( ) == null ? null :
                          new String (
                                Base64.encodeBase64 ( association.getMacKey ( ).getEncoded ( ) ) ),
                        association.getExpiry ( ) } ) ;
  }
  catch ( Exception e )
  {
    _log.error ( "Error saving association to table: " + _tableName, e ) ;
  }
}
origin: org.openid4java/openid4java-nodeps

public void save ( String opUrl, Association association )
{
  cleanupExpired ( ) ;
  
  try
  {
    JdbcTemplate jdbcTemplate = getJdbcTemplate ( ) ;
    int cnt = jdbcTemplate.update ( _sqlInsert,
                    new Object[]
                      {
                         opUrl,
                        association.getHandle ( ),
                        association.getType ( ),
                        association.getMacKey ( ) == null ? null :
                          new String (
                                Base64.encodeBase64 ( association.getMacKey ( ).getEncoded ( ) ) ),
                        association.getExpiry ( ) } ) ;
  }
  catch ( Exception e )
  {
    _log.error ( "Error saving association to table: " + _tableName, e ) ;
  }
}
origin: jbufu/openid4java

public void save ( String opUrl, Association association )
{
  cleanupExpired ( ) ;
  
  try
  {
    JdbcTemplate jdbcTemplate = getJdbcTemplate ( ) ;
    int cnt = jdbcTemplate.update ( _sqlInsert,
                    new Object[]
                      {
                         opUrl,
                        association.getHandle ( ),
                        association.getType ( ),
                        association.getMacKey ( ) == null ? null :
                          new String (
                                Base64.encodeBase64 ( association.getMacKey ( ).getEncoded ( ) ) ),
                        association.getExpiry ( ) } ) ;
  }
  catch ( Exception e )
  {
    _log.error ( "Error saving association to table: " + _tableName, e ) ;
  }
}
origin: be.fedict.eid-idp/eid-idp-protocol-openid

  throw new AssociationException("unknown type: " + type);
SecretKey macKey = association.getMacKey();
byte[] macKeyBytes = macKey.getEncoded();
encodedAssociation.write(macKeyBytes);
origin: org.wso2.carbon.identity.inbound.auth.openid/org.wso2.carbon.identity.provider

prepStmt.setString(2, association.getType());
prepStmt.setTimestamp(3, new java.sql.Timestamp(association.getExpiry().getTime()));
prepStmt.setString(4, Base64.encode(association.getMacKey().getEncoded()));
prepStmt.setString(5, associationStore);
prepStmt.execute();
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provider

prepStmt.setString(2, association.getType());
prepStmt.setTimestamp(3, new java.sql.Timestamp(association.getExpiry().getTime()));
prepStmt.setString(4, Base64.encode(association.getMacKey().getEncoded()));
prepStmt.setString(5, associationStore);
prepStmt.execute();
origin: org.openid4java/openid4java

    association.getType(),
    new String(Base64.encodeBase64(
        association.getMacKey().getEncoded())),
    association.getExpiry()
});
origin: org.wso2.org.openid4java/openid4java-nodeps

    association.getType(),
    new String(Base64.encodeBase64(
        association.getMacKey().getEncoded())),
    association.getExpiry()
});
origin: org.openid4java/openid4java-nodeps

    association.getType(),
    new String(Base64.encodeBase64(
        association.getMacKey().getEncoded())),
    association.getExpiry()
});
origin: com.cloudbees/openid4java-shaded

    association.getType(),
    new String(Base64.encodeBase64(
        association.getMacKey().getEncoded())),
    association.getExpiry()
});
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provider

/**
 * Add the entry to the cache.
 *
 * @param association
 */
public void addToCache(Association association) {
  if(association == null){
    throw new IllegalArgumentException("Association is \'Null\'");
  }
  OpenIDIdentityCacheKey cacheKey = new OpenIDIdentityCacheKey(0, association.getHandle());
  OpenIDIdentityCacheEntry cacheEntry =
      new OpenIDIdentityCacheEntry(association.getType(), association.getMacKey(),
                     association.getExpiry());
  associationCache.addToCache(cacheKey, cacheEntry);
  if (log.isDebugEnabled()) {
    log.debug("New entry is added to cache for handle : " + association.getHandle());
  }
}
origin: jbufu/openid4java

    association.getType(),
    new String(Base64.encodeBase64(
        association.getMacKey().getEncoded())),
    association.getExpiry()
});
origin: org.wso2.carbon.identity.inbound.auth.openid/org.wso2.carbon.identity.provider

/**
 * Add the entry to the cache.
 *
 * @param association
 */
public void addToCache(Association association) {
  if(association == null){
    throw new IllegalArgumentException("Association is \'Null\'");
  }
  OpenIDIdentityCacheKey cacheKey = new OpenIDIdentityCacheKey(0, association.getHandle());
  OpenIDIdentityCacheEntry cacheEntry =
      new OpenIDIdentityCacheEntry(association.getType(), association.getMacKey(),
                     association.getExpiry());
  associationCache.addToCache(cacheKey, cacheEntry);
  if (log.isDebugEnabled()) {
    log.debug("New entry is added to cache for handle : " + association.getHandle());
  }
}
origin: jbufu/openid4java

assoc.getMacKey().getEncoded(),
assocReq.getDhPublicKey() ));
Base64.encodeBase64(assoc.getMacKey().getEncoded())));
origin: com.cloudbees/openid4java-shaded

assoc.getMacKey().getEncoded(),
assocReq.getDhPublicKey() ));
Base64.encodeBase64(assoc.getMacKey().getEncoded())));
origin: org.openid4java/openid4java-nodeps

assoc.getMacKey().getEncoded(),
assocReq.getDhPublicKey() ));
Base64.encodeBase64(assoc.getMacKey().getEncoded())));
origin: org.openid4java/openid4java

assoc.getMacKey().getEncoded(),
assocReq.getDhPublicKey() ));
Base64.encodeBase64(assoc.getMacKey().getEncoded())));
origin: org.wso2.org.openid4java/openid4java-nodeps

      assoc.getMacKey().getEncoded(),
      assocReq.getDhPublicKey()));
} else // no-encryption session, unecrypted MAC key
      Base64.encodeBase64(assoc.getMacKey().getEncoded())));
org.openid4java.associationAssociationgetMacKey

Popular methods of Association

  • getHandle
  • hasExpired
  • createHmacSha1
  • createHmacSha256
  • generate
  • getExpiry
  • getType
  • sign
  • verifySignature
  • <init>
  • createMacKey
  • generateHmacSha1
  • createMacKey,
  • generateHmacSha1,
  • generateHmacSha256,
  • generateMacKey,
  • generateMacSha1Key,
  • generateMacSha256Key,
  • getFailedAssociation,
  • isHmacSha256Supported,
  • isHmacSupported

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • JButton (javax.swing)
  • JCheckBox (javax.swing)
  • Best plugins for Eclipse
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