本文整理了Java中org.openid4java.association.Association.generateHmacSha1()
方法的一些代码示例,展示了Association.generateHmacSha1()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Association.generateHmacSha1()
方法的具体详情如下:
包路径:org.openid4java.association.Association
类名称:Association
方法名:generateHmacSha1
暂无
代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps
public static Association generate(String type, String handle, int expiryIn) throws AssociationException {
if (TYPE_HMAC_SHA1.equals(type)) {
return generateHmacSha1(handle, expiryIn);
} else if (TYPE_HMAC_SHA256.equals(type)) {
return generateHmacSha256(handle, expiryIn);
} else {
throw new AssociationException("Unknown association type: " + type);
}
}
代码示例来源:origin: com.cloudbees/openid4java-shaded
public static Association generate(String type, String handle, int expiryIn) throws AssociationException
{
if (TYPE_HMAC_SHA1.equals(type))
{
return generateHmacSha1(handle, expiryIn);
}
else if (TYPE_HMAC_SHA256.equals(type))
{
return generateHmacSha256(handle, expiryIn);
}
else
{
throw new AssociationException("Unknown association type: " + type);
}
}
代码示例来源:origin: jbufu/openid4java
public static Association generate(String type, String handle, int expiryIn) throws AssociationException
{
if (TYPE_HMAC_SHA1.equals(type))
{
return generateHmacSha1(handle, expiryIn);
}
else if (TYPE_HMAC_SHA256.equals(type))
{
return generateHmacSha256(handle, expiryIn);
}
else
{
throw new AssociationException("Unknown association type: " + type);
}
}
代码示例来源:origin: org.openid4java/openid4java
public static Association generate(String type, String handle, int expiryIn) throws AssociationException
{
if (TYPE_HMAC_SHA1.equals(type))
{
return generateHmacSha1(handle, expiryIn);
}
else if (TYPE_HMAC_SHA256.equals(type))
{
return generateHmacSha256(handle, expiryIn);
}
else
{
throw new AssociationException("Unknown association type: " + type);
}
}
代码示例来源:origin: org.openid4java/openid4java-nodeps
public static Association generate(String type, String handle, int expiryIn) throws AssociationException
{
if (TYPE_HMAC_SHA1.equals(type))
{
return generateHmacSha1(handle, expiryIn);
}
else if (TYPE_HMAC_SHA256.equals(type))
{
return generateHmacSha256(handle, expiryIn);
}
else
{
throw new AssociationException("Unknown association type: " + type);
}
}
内容来源于网络,如有侵权,请联系作者删除!