/** * Set the local password. * @param password The password of the local platform. * @throws Exception, when a null password is provided and use password is true. */ @SecureTransmission public IFuture<Void> setLocalPassword(String password);
/** * Get the validity duration. * @return The validityduration. */ @SecureTransmission public IFuture<Long> getValidityDuration();
/** * Check if the name belongs to the mappings of one * of the virtual names. * @param virtuals The virtual names. * @param name The name to check. */ @SecureTransmission public IFuture<Void> checkVirtual(String[] virtuals, String name);
/** * Set the local password. * @param password The password of the local platform. * @throws Exception, when a null password is provided and use password is true. */ @SecureTransmission public IFuture<Void> setLocalPassword(String password);
/** * Set the password for a target component. * Note that passwords are currently stored on a per platform basis, * i.e. there is only one stored password for all components of the same platform. * Moreover, the security service strips the auto-generated extension from the platform * name and therefore can reuse the password for different instances of the same platform. * @param target The id of the target component. * @param password The password or null if no password should be used. */ @SecureTransmission public IFuture<Void> setPlatformPassword(IComponentIdentifier target, String password);
/** * Remove a name from the mappings of a virtual name. * @param virtual The virtual name. * @param name The name to remove. */ @SecureTransmission public IFuture<Void> removeVirtual(String virtual, String name);
/** * Get all stored platform passwords. * @return A map containing the stored passwords as pairs (platform name -> password). */ @SecureTransmission public IFuture<Map<String, String>> getPlatformPasswords();
/** * Remove a name from the mappings of a virtual name. * @param virtual The virtual name. * @param name The name to remove. */ @SecureTransmission public IFuture<Void> removeVirtual(String virtual, String name);
/** * Get the local password. * @return The password of the local platform (if set). */ @SecureTransmission public IFuture<String> getLocalPassword();
/** * Add a name to the mappings of a virtual name. * @param virtual The virtual name. * @param name The name to add. */ @SecureTransmission public IFuture<Void> addVirtual(String virtual, String name);
/** * Pass an input stream to the user. * @return The input stream. */ @SecureTransmission public IFuture<IInputConnection> getSecureInputStream();
/** * Pass an Input stream to the user. * @return The Input stream. */ @SecureTransmission public IFuture<Long> passSecureInputStream(IInputConnection con);
/** * Get the password for a target component. * @param target The id of the target component. * @return The stored password. Returns null if no password is stored, unless the * component is a local component in which case the local password (if any) is returned. */ @SecureTransmission public IFuture<String> getPlatformPassword(IComponentIdentifier target);
/** * Set the validity duration. * @param validityduration The validityduration to set. */ @SecureTransmission public IFuture<Void> setValidityDuration(long validityduration);
/** * Add a name to the mappings of a virtual name. * @param virtual The virtual name. * @param name The name to add. */ @SecureTransmission public IFuture<Void> addVirtual(String virtual, String name);
/** * Create a key pair entry. * @param cid The entry name. * @param algorithm The algorithm. * @param keysize The key size (in bits). */ @SecureTransmission // Protect password public IFuture<Void> createKeyPair(IComponentIdentifier cid, String algorithm, int keysize, String password, int validity);
/** * Get the local password. * @return The password of the local platform (if any). */ @SecureTransmission // Todo: password is transferred in plain text unless transport uses encryption. public IFuture<String> getLocalPassword() { return new Future<String>(password); }
/** * Get all stored network passwords. * @return A map containing the stored passwords as pairs (network name -> password). */ @SecureTransmission // Todo: passwords are transferred in plain text unless transport uses encryption. public IFuture<Map<String, String>> getNetworkPasswords() { return new Future<Map<String, String>>(networkpasses); }
/** * Get all stored passwords. * @return A map containing the stored passwords as pairs (platform name -> password). */ @SecureTransmission // Todo: passwords are transferred in plain text unless transport uses encryption. public IFuture<Map<String, String>> getPlatformPasswords() { return new Future<Map<String, String>>(platformpasses); }
/** * Pass an output stream to the user. * @return The input stream. */ @SecureTransmission public IFuture<IOutputConnection> getSecureOutputStream() { return getOutputStream(); }