- exponent
- the exponent.
- modulus
- Documentation for this section has not yet been entered.
- m
- the modulus.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.NullPointerException if modulus == null or exponent == null. Java.Lang.ArithmeticException if modulus or if exponent and not relatively prime to modulus.
Returns a BigInteger whose value is pow(this, exponent) mod modulus. The modulus must be positive. The result is guaranteed to be in the interval [0, modulus). If the exponent is negative, then pow(this.modInverse(modulus), -exponent) mod modulus is computed. The inverse of this only exists if this is relatively prime to the modulus, otherwise an exception is thrown.