public boolean isAuthorizationPending() {
        return state == State.pending;
    }
Returns true if the subscription needs to be approved by a node owner to become
active. Until the subscription is not activated the subscriber will not receive
event notifications.

@return true if the subscription needs to be approved by a node owner to become active.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/NodeSubscription.java