X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FOwnIdentity.java;h=500f2c7e7f2445c8497e6020033bf133c6aa0a09;hp=d9ec16009d11324a72c61f919b68b6fa3b01d4cf;hb=179e7da4d8d8a474d0b622d60b5f5d32d6ab4052;hpb=d4d0a56c658d54e1ca12e125d5977b6de70ba894 diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java b/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java index d9ec160..500f2c7 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java @@ -1,5 +1,5 @@ /* - * Sone - OwnIdentity.java - Copyright © 2010 David Roden + * Sone - OwnIdentity.java - Copyright © 2010–2019 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,45 +17,22 @@ package net.pterodactylus.sone.freenet.wot; + /** - * An own identity is an identity that the owner of the node has full control - * over. - * - * @author David ‘Bombe’ Roden + * Defines a local identity, an own identity. */ -public class OwnIdentity extends Identity { - - /** The insert URI of the identity. */ - private final String insertUri; - - /** - * Creates a new own identity. - * - * @param id - * The ID of the identity - * @param nickname - * The nickname of the identity - * @param requestUri - * The request URI of the identity - * @param insertUri - * The insert URI of the identity - */ - public OwnIdentity(String id, String nickname, String requestUri, String insertUri) { - super(id, nickname, requestUri); - this.insertUri = insertUri; - } - - // - // ACCESSORS - // +public interface OwnIdentity extends Identity { /** * Returns the insert URI of the identity. * * @return The insert URI of the identity */ - public String getInsertUri() { - return insertUri; - } + public String getInsertUri(); + + public OwnIdentity addContext(String context); + public OwnIdentity removeContext(String context); + public OwnIdentity setProperty(String name, String value); + public OwnIdentity removeProperty(String name); }