本文整理了Java中aQute.lib.hex.Hex.toHexString()
方法的一些代码示例,展示了Hex.toHexString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hex.toHexString()
方法的具体详情如下:
包路径:aQute.lib.hex.Hex
类名称:Hex
方法名:toHexString
暂无
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
@Override
public String toString() {
try {
return "P-" + getResource();
} catch (Exception e) {
return "P-" + Hex.toHexString(sha);
}
}
代码示例来源:origin: biz.aQute.bnd/bnd
public String toString() {
try {
return "P-" + getResource();
}
catch (Exception e) {
return "P-" + Hex.toHexString(sha);
}
}
代码示例来源:origin: org.osgi/osgi.enroute.web.simple.provider
@Override
public
void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception {
StringHandler.string(app, Hex.toHexString((byte[]) object));
}
代码示例来源:origin: org.osgi/osgi.enroute.jsonrpc.simple.provider
@Override
public
void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception {
StringHandler.string(app, Hex.toHexString((byte[]) object));
}
代码示例来源:origin: biz.aQute/bndlib
@Override
void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception {
StringHandler.string(app, Hex.toHexString((byte[]) object));
}
代码示例来源:origin: biz.aQute/bndlib
@Override
public String toString() {
return String.format("%s(d=%s)", getAlgorithm(), Hex.toHexString(digest));
}
代码示例来源:origin: biz.aQute.bnd/bndlib
public String toString() {
try {
return "P-" + getResource();
}
catch (Exception e) {
return "P-" + Hex.toHexString(sha);
}
}
代码示例来源:origin: biz.aQute.bnd/bndlib
@Override
public String toString() {
return String.format("%s(d=%s)", getAlgorithm(), Hex.toHexString(digest));
}
代码示例来源:origin: biz.aQute.bnd/bndlib
@Override
void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception {
StringHandler.string(app, Hex.toHexString((byte[]) object));
}
代码示例来源:origin: org.osgi/osgi.enroute.rest.simple.provider
@Override
public
void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception {
StringHandler.string(app, Hex.toHexString((byte[]) object));
}
代码示例来源:origin: org.osgi/osgi.enroute.easse.simple.adapter
@Override
public
void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception {
StringHandler.string(app, Hex.toHexString((byte[]) object));
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
@Override
public String toString() {
try {
return "P-" + getResource();
} catch (Exception e) {
return "P-" + Hex.toHexString(sha);
}
}
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* Set the private key in the settings for this machine
*
* @param hex
* @param data
* @return
* @throws Exception
*/
private String tos(boolean hex, byte[] data) {
return data.length + " : " + (hex ? Hex.toHexString(data) : Base64.encodeBase64(data));
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
@Override
public String toString() {
return String.format("%s(d=%s)", getAlgorithm(), Hex.toHexString(digest));
}
代码示例来源:origin: org.osgi/osgi.enroute.authenticator.simple.provider
public String hash(String password) throws Exception {
switch (algorithm) {
default :
case PBKDF2WithHmacSHA1 :
byte[] hash = pbkdf2(password.toCharArray(), salt, iterations, 24);
return Hex.toHexString(hash);
}
}
代码示例来源:origin: org.osgi/osgi.enroute.dtos.bndlib.provider
@Override
public
void encode(Encoder app, Object object, Map<Object,Type> visited) throws IOException, Exception {
StringHandler.string(app, Hex.toHexString((byte[]) object));
}
代码示例来源:origin: biz.aQute.bnd/bndlib
/**
* Delete a cache entry
*/
public boolean deleteCache(byte[] id) throws Exception {
File dir = IO.getFile(cache, Hex.toHexString(id));
if (dir.isDirectory()) {
IO.delete(dir);
return true;
}
return false;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
/**
* Delete a cache entry
*/
@Override
public boolean deleteCache(byte[] id) throws Exception {
File dir = IO.getFile(cache, Hex.toHexString(id));
if (dir.isDirectory()) {
IO.delete(dir);
return true;
}
return false;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
/**
* Delete a cache entry
*/
@Override
public boolean deleteCache(byte[] id) throws Exception {
File dir = IO.getFile(cache, Hex.toHexString(id));
if (dir.isDirectory()) {
IO.delete(dir);
return true;
}
return false;
}
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* Delete a cache entry
*/
public boolean deleteCache(byte[] id) throws Exception {
File dir = IO.getFile(cache, Hex.toHexString(id));
if (dir.isDirectory()) {
IO.delete(dir);
return true;
}
return false;
}
内容来源于网络,如有侵权,请联系作者删除!