gpt4 book ai didi

xdi2.core.features.nodetypes.XdiCommonRoot.getXdiEntity()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 09:31:05 25 4
gpt4 key购买 nike

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

XdiCommonRoot.getXdiEntity介绍

暂无

代码示例

代码示例来源:origin: projectdanube/xdi2

@Override
public RSAPrivateKey getPrivateKey(XDIAddress signerXDIAddress) throws GeneralSecurityException {
  if (signerXDIAddress == null) throw new NullPointerException();
  // graph
  MessagingContainerMount messagingContainerMount;
  try {
    messagingContainerMount = this.getMessagingContainerRegistry().lookup(XdiPeerRoot.createPeerRootXDIArc(signerXDIAddress));
  } catch (Exception ex) {
    throw new GeneralSecurityException("Messaging target not found for " + signerXDIAddress + ": " + ex.getMessage(), ex);
  }
  if (log.isDebugEnabled()) log.debug("Messaging target mount: " + messagingContainerMount);
  if (messagingContainerMount == null) return null;
  MessagingContainer messagingContainer = messagingContainerMount.getMessagingContainer();
  Graph graph = ((GraphMessagingContainer) messagingContainer).getGraph();    // TODO: what if this is another messaging container?
  // signer entity
  XdiEntity signerXdiEntity = XdiCommonRoot.findCommonRoot(graph).getXdiEntity(signerXDIAddress, false);
  signerXdiEntity = signerXdiEntity == null ? null : signerXdiEntity.dereference();
  if (log.isDebugEnabled()) log.debug("Signer entity: " + signerXdiEntity + " in graph " + GraphUtil.getOwnerPeerRootXDIArc(graph));
  if (signerXdiEntity == null) return null;
  // find private key
  RSAPrivateKey privateKey = rsaPrivateKeyFromPrivateKeyString(Keys.getSignaturePrivateKey(signerXdiEntity));
  // done
  return privateKey;
}

代码示例来源:origin: projectdanube/xdi2

@Override
public SecretKey getSecretKey(XDIAddress signerXDIAddress) throws GeneralSecurityException {
  // signer address
  if (signerXDIAddress == null) {
    signerXDIAddress = GraphUtil.getOwnerXDIAddress(this.getSecretKeyGraph());
  }
  // signer entity
  XdiEntity signerXdiEntity = XdiCommonRoot.findCommonRoot(this.getSecretKeyGraph()).getXdiEntity(signerXDIAddress, false);
  signerXdiEntity = signerXdiEntity == null ? null : signerXdiEntity.dereference();
  if (log.isDebugEnabled()) log.debug("Signer entity: " + signerXdiEntity + " in graph " + GraphUtil.getOwnerPeerRootXDIArc(this.getSecretKeyGraph()));
  if (signerXdiEntity == null) return null;
  // find secret key
  SecretKey secretKey = aesSecretKeyFromSecretKeyString(Keys.getSecretKey(signerXdiEntity));
  // done
  return secretKey;
}

代码示例来源:origin: projectdanube/xdi2

@Override
public RSAPrivateKey getPrivateKey(XDIAddress signerXDIAddress) throws GeneralSecurityException {
  // signer address
  if (signerXDIAddress == null) {
    signerXDIAddress = GraphUtil.getOwnerXDIAddress(this.getPrivateKeyGraph());
  }
  // signer entity
  XdiEntity signerXdiEntity = XdiCommonRoot.findCommonRoot(this.getPrivateKeyGraph()).getXdiEntity(signerXDIAddress, false);
  signerXdiEntity = signerXdiEntity == null ? null : signerXdiEntity.dereference();
  if (log.isDebugEnabled()) log.debug("Signer entity: " + signerXdiEntity + " in graph " + GraphUtil.getOwnerPeerRootXDIArc(this.getPrivateKeyGraph()));
  if (signerXdiEntity == null) return null;
  // find private key
  RSAPrivateKey privateKey = rsaPrivateKeyFromPrivateKeyString(Keys.getSignaturePrivateKey(signerXdiEntity));
  // done
  return privateKey;
}

代码示例来源:origin: projectdanube/xdi2

@Override
public RSAPublicKey getPublicKey(XDIAddress signerXDIAddress) throws GeneralSecurityException {
  // signer address
  if (signerXDIAddress == null) {
    signerXDIAddress = GraphUtil.getOwnerXDIAddress(this.getPublicKeyGraph());
  }
  // signer entity
  XdiEntity signerXdiEntity = XdiCommonRoot.findCommonRoot(this.getPublicKeyGraph()).getXdiEntity(signerXDIAddress, false);
  signerXdiEntity = signerXdiEntity == null ? null : signerXdiEntity.dereference();
  if (log.isDebugEnabled()) log.debug("Signer entity: " + signerXdiEntity + " in graph " + GraphUtil.getOwnerPeerRootXDIArc(this.getPublicKeyGraph()));
  if (signerXdiEntity == null) return null;
  // find public key
  RSAPublicKey publicKey = rsaPublicKeyFromPublicKeyString(Keys.getSignaturePublicKey(signerXdiEntity));
  // done
  return publicKey;
}

代码示例来源:origin: projectdanube/xdi2

@Override
public SecretKey getSecretKey(XDIAddress signerXDIAddress) throws GeneralSecurityException {
  // signer address
  if (signerXDIAddress == null) {
    signerXDIAddress = GraphUtil.getOwnerXDIAddress(this.getSecretKeyGraph());
  }
  // signer entity
  XdiEntity signerXdiEntity = XdiCommonRoot.findCommonRoot(this.getSecretKeyGraph()).getXdiEntity(signerXDIAddress, false);
  signerXdiEntity = signerXdiEntity == null ? null : signerXdiEntity.dereference();
  if (log.isDebugEnabled()) log.debug("Signer entity: " + signerXdiEntity + " in graph " + GraphUtil.getOwnerPeerRootXDIArc(this.getSecretKeyGraph()));
  if (signerXdiEntity == null) return null;
  // find secret key
  SecretKey secretKey = aesSecretKeyFromSecretKeyString(Keys.getSecretKey(signerXdiEntity));
  // done
  return secretKey;
}

代码示例来源:origin: projectdanube/xdi2

XdiEntity authorityXdiEntity = XdiCommonRoot.findCommonRoot(registryResultGraph).getXdiEntity(this.cloudNumber.getXDIAddress(), false);

代码示例来源:origin: projectdanube/xdi2

XdiEntity authorityXdiEntity = XdiCommonRoot.findCommonRoot(authorityResultGraph).getXdiEntity(cloudNumber.getXDIAddress(), false);
if (authorityXdiEntity == null) return null;

代码示例来源:origin: projectdanube/xdi2

XdiEntity authorityXdiEntity = XdiCommonRoot.findCommonRoot(authorityResultGraph).getXdiEntity(this.cloudNumber.getXDIAddress(), false);

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com