org.openid4java.association.Association.getType()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中org.openid4java.association.Association.getType()方法的一些代码示例,展示了Association.getType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Association.getType()方法的具体详情如下:
包路径:org.openid4java.association.Association
类名称:Association
方法名:getType

Association.getType介绍

暂无

代码示例

代码示例来源:origin: be.fedict.eid-idp/eid-idp-protocol-openid

InvalidAlgorithmParameterException, NoSuchProviderException {
ByteArrayOutputStream encodedAssociation = new ByteArrayOutputStream();
String type = association.getType();
if (type == Association.TYPE_HMAC_SHA1) {
  encodedAssociation.write(1);

代码示例来源: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.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()));

代码示例来源: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()));

代码示例来源: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: org.wso2.org.openid4java/openid4java-nodeps

new Object[]{
    association.getHandle(),
    association.getType(),
    new String(Base64.encodeBase64(
        association.getMacKey().getEncoded())),

代码示例来源:origin: org.openid4java/openid4java

new Object[] {
    association.getHandle(),
    association.getType(),
    new String(Base64.encodeBase64(
        association.getMacKey().getEncoded())),

代码示例来源:origin: com.cloudbees/openid4java-shaded

new Object[] {
    association.getHandle(),
    association.getType(),
    new String(Base64.encodeBase64(
        association.getMacKey().getEncoded())),

代码示例来源:origin: org.openid4java/openid4java-nodeps

new Object[] {
    association.getHandle(),
    association.getType(),
    new String(Base64.encodeBase64(
        association.getMacKey().getEncoded())),

代码示例来源:origin: jbufu/openid4java

new Object[] {
    association.getHandle(),
    association.getType(),
    new String(Base64.encodeBase64(
        association.getMacKey().getEncoded())),

代码示例来源: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: 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());
  }
}

相关文章