[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fenfire-dev] Storm: Creating a Pointer Signature
From: |
Matti Katila |
Subject: |
[Fenfire-dev] Storm: Creating a Pointer Signature |
Date: |
Thu, 27 May 2004 06:48:41 +0300 (EEST) |
Hi,
keyinfo =
Base64.decode(java.lang.String('rO0ABXdYAFZ2bmQtc3Rvcm0tcmVmOnZwNnFqYWpxYXNpaHRrdW81czZj
... clip ...
1prplQU62LbFacD9lAVr57cOcESXYGWDO5SozAWs0hDMvTng=').toCharArray())
ownerReference = '''_:this
<http://purl.oclc.org/NET/storm/vocab/pointers/identificationInfo>
<vnd-storm-hash:text/plain,3i42h3s6nnfq2msvx7xzkyayscx5qbyj.lwpnacqdbzryxw3vhjvcj64qbznghohhhzwclnq>.
_:this <http://purl.oclc.org/NET/storm/vocab/pointers/initialPublicKeySpec>
"MIIBtzCCASwGByqGSM44BAEwggEfAoGBALouHeVNysqElgFfFpJxxiYxNKV+FkZ/BCJqZD0EzS/
... clip ...
AC6t+Bmd47yJ9509j8Sj6Ju8+BwKIldnJ9QQbNaa6ZUFOti2xWnA/ZQFa+e3DnBEl2BlgzuUqMwFrNIQzL04="^^
<http://www.w3.org/2001/XMLSchema#base64Binary>.
_:this <http://purl.oclc.org/NET/storm/vocab/pointers/owns> _:this.
_:this <http://purl.oclc.org/NET/storm/vocab/ref-uri/resolutionMethod>
<http://purl.oclc.org/NET/storm/vocab/ref-uri/Pointer>.
'''
# create owner reference
pool = TransientPool(java.util.Collections.singleton(PointerIndex.type))
bos = pool.getBlockOutputStream("text/plain")
bos.write(ownerReference)
bos.close()
signer = PointerSigner(pool, ByteArrayInputStream(keyinfo))
sw = java.io.StringWriter()
signer.getOwner().write(sw)
The question is how to create these owner reference blocks? What it
consist of? Is there restrictions with the used public key, e.g., it must
be RSA or DSA and 1024 bits?
-Matti
- [Fenfire-dev] Storm: Creating a Pointer Signature,
Matti Katila <=