Uses of Annotation Interface
org.forgerock.util.annotations.VisibleForTesting
Package
Description
This package contains utility classes used in the audit service.
This package contains
Filter
to authenticate and authorize LDAP connections.Contains code of the setup command line interface tool.
Contains code of the opendj setup model.
Contains a number of API declarations for use throughout the Directory Server.
Contains the code for implementing Directory Server pluggable storage backends.
Classes related to backup and restore.
Contains various classes that comprise the core of the Directory Server codebase.
Contains various implementations of Directory Server APIs that are not appropriate for other packages.
Contains implementations of Directory Server access, error, and debug loggers.
Contains the implementation for the Directory Server connection handler that is responsible for interacting with
clients using LDAPv3.
This package contains the part of the Multi-master replication code that works on the Directory Server side.
This package contains the code used by the replication server and by the code running on the Directory Server side to
exchange their information.
This package contains the code for the Replication Server part of the Multimaster replication feature.
This package contains a file-based log implementation for the changelog database API.
This package contains the generic of the Multi-Master replication code that works on the Directory Server side.
Defines the specific classes that are used by the upgrade tool.
Contains implementations for various Directory Server utility classes and methods which may be used throughout the
server but do not necessarily fit in elsewhere.
-
Uses of VisibleForTesting in org.forgerock.audit.util
Modifier and TypeFieldDescriptionprotected static final String
ElasticsearchUtil.FIELD_NAMES_FIELD
JSON field-name of normalized field-names.protected static final String
ElasticsearchUtil.NORMALIZED_FIELD
JSON field-name of metadata to assist in de-normalization.Modifier and TypeMethodDescriptionprotected static String
ElasticsearchUtil.replaceKeyPeriodsWithUnderscores
(String json) Replaces all period-characters in JSON keys with underscore-characters [ref].protected static JsonValue
ElasticsearchUtil.restoreKeyPeriods
(JsonValue value, JsonValue normalized) Reverses the normalization steps preformed byElasticsearchUtil.replaceKeyPeriodsWithUnderscores(String)
. -
Uses of VisibleForTesting in org.forgerock.opendj.rest2ldap.authz
Modifier and TypeClassDescriptionstatic final class
A class used to verify whether a givenSignedJwt
is valid.Modifier and TypeMethodDescriptionstatic JwtFactories.JwtVerifier
JwtFactories.newJwtVerifier
(JwtFactories.JwtSecretsProvider secretsProvider) Returns a new SignedJwtVerifier.JwtFactories.newSignedJwtFactory
(JwtFactories.JwtSecretsProvider secretsProvider, org.forgerock.json.jose.jws.JwsAlgorithm algorithm, Duration validityPeriodInSecs) Returns a new SignedJwtFactory.Promise<org.forgerock.json.jose.jws.SignedJwt,
ResourceException> Verifies the given bearerToken is a validSignedJwt
. -
Uses of VisibleForTesting in org.forgerock.opendj.setup.cli
Modifier and TypeMethodDescriptionstatic com.forgerock.opendj.cli.ReturnCode
SetupCli.runSetup
(PrintStream outStream, PrintStream errStream, String... args) The main method to be called by unit tests. -
Uses of VisibleForTesting in org.forgerock.opendj.setup.model
Modifier and TypeFieldDescriptionstatic final String
The name of the JVM trust manager provider provided in the config template.static final Path
SetupConstants.KEYSTORE_PIN_FILE_RELATIVE_PATH
Relative instance path of the generated deployment SSL keystore PIN file.static final Path
SetupConstants.TRUSTSTORE_PIN_FILE_RELATIVE_PATH
Relative instance path of the generated SSL truststore PIN file.Modifier and TypeMethodDescriptionstatic void
SetupUtils.writeVersionsInConfigFile
(Path configFile) Writes server binary and upgrade version in the provided LDIF config file. -
Uses of VisibleForTesting in org.opends.server.api
Modifier and TypeMethodDescriptionabstract String
EntryCache.toVerboseString()
Return a verbose string representation of the current cache maps. -
Uses of VisibleForTesting in org.opends.server.backends.pluggable
Modifier and TypeMethodDescriptionvoid
BackendImpl.clearBackend()
Clears the contents of this backend, including any database files. -
Uses of VisibleForTesting in org.opends.server.backup
Modifier and TypeClassDescriptionfinal class
A backup file manager is responsible for securely and lazily saving backend files and metadata to its underlying backup storage.Modifier and TypeMethodDescriptionBackupFileManager.getBackupIds()
Returns the set of metadata IDS found in the underlying backup storage.BackupFileManager.readBackup
(BackupId backupId) Reads the backup file with the provided ID from the underlying backup storage and converts it to a backup object.ModifierConstructorDescriptionBackupManager
(BackupFileManager backupFileManager, String serverId) Constructor. -
Uses of VisibleForTesting in org.opends.server.core
Modifier and TypeClassDescriptionstatic final class
This class defines the entry cache dispatcher which acts as an arbiter for every entry cache implementation configured and installed within the Directory Server or acts an an empty cache if no implementation specific entry cache is configured.Modifier and TypeMethodDescriptionvoid
GroupManager.deregisterAllGroups()
Removes all group instances that might happen to be registered with the group manager.Retrieves the set of client connections authenticated as the specified user. -
Uses of VisibleForTesting in org.opends.server.extensions
Modifier and TypeFieldDescriptionstatic final byte
ExtensionsConstants.TYPE_PASSWORD_MODIFY_NEW_PASSWORD
The ASN.1 element type that will be used to encode the newPasswd component in a password modify extended request.static final byte
ExtensionsConstants.TYPE_PASSWORD_MODIFY_OLD_PASSWORD
The ASN.1 element type that will be used to encode the oldPasswd component in a password modify extended request.static final byte
ExtensionsConstants.TYPE_PASSWORD_MODIFY_USER_ID
The ASN.1 element type that will be used to encode the userIdentity component in a password modify extended request.Modifier and TypeMethodDescriptionLdapUrl[]
DynamicGroup.getMemberURLs()
Retrieves the set of member URLs for this dynamic group. -
Uses of VisibleForTesting in org.opends.server.loggers
ModifierConstructorDescriptionTextAccessLogPublisher
(TextWriter writer, ServerContext serverContext) Prints all messages to the provided writer. -
Uses of VisibleForTesting in org.opends.server.protocols.ldap
Modifier and TypeMethodDescriptionlong
LdapStatistics.getOperationsAbandoned()
Retrieves the number of operations that have been abandoned by clients. -
Uses of VisibleForTesting in org.opends.server.replication.plugin
Modifier and TypeMethodDescriptionstatic Collection<Dn>
MultimasterReplication.getDomainDns()
Returns the DNs of the replication domains.static EntryHistorical
EntryHistorical.newInstanceFromEntry
(Entry entry) Construct an Historical object from the provided entry by reading the historical attribute.static void
MultimasterReplication.resetUnreachableReplicationServers()
Resets the state of the unreachable replication servers to empty.ModifierConstructorDescriptionEntryHistoricalAttribute
(EntryHistorical entryHistorical) Creates a new ds-sync-hist attribute whose content is based on the provided historical information. -
Uses of VisibleForTesting in org.opends.server.replication.protocol
Modifier and TypeMethodDescriptionMonitorMsg.getReplicaServerStates()
Returns the map of replica Ids to server states. -
Uses of VisibleForTesting in org.opends.server.replication.server
Modifier and TypeMethodDescriptionboolean
ReplicationServerDomain.hasDifferentGenerationIdThan
(ReplicaId replicaId) Returns whether the provided replica has a different generationId than this replication domain.void
ReplicationServerDomain.resetGenerationId()
Resets the generation id to its default value.static void
HeartbeatPublisher.setHeartbeatsDisabled
(boolean heartbeatsDisabled) For testing purposes only to simulate loss of heartbeats. -
Uses of VisibleForTesting in org.opends.server.replication.server.changelog.file
Modifier and TypeMethodDescriptionvoid
FileChangelogDB.clearDB()
Clears all records from the changelog (does not remove the changelog itself). -
Uses of VisibleForTesting in org.opends.server.replication.service
Modifier and TypeMethodDescriptionReplicationDomain.getReplicationServerId()
Get the replication server ID to which this domain is currently connected.int
ReplicationDomain.getReplicationServerPort()
Get the port of the replicationServer to which this domain is currently connected.ReplicationBroker.receive()
Receive a message. -
Uses of VisibleForTesting in org.opends.server.tools.upgrade
Modifier and TypeFieldDescriptionstatic final String
UpgradeCli.OPTION_LONG_FORCE_UPGRADE
The value for the long option force upgrade. -
Uses of VisibleForTesting in org.opends.server.util
Modifier and TypeFieldDescriptionstatic final ScheduledExecutorService
CronExecutorService.NULL_CRON_EXECUTOR
A Null CronExecutor, used during server shutdown.